Jump to content
Guy01

Show elements in a pre-defined set in hw

Recommended Posts

Hello

Can anyone help me to do a "isolate only" type of operation by command?

I would like to display results on a set defined in hyperview.

 

hwi GetSessionHandle sess
sess GetProjectHandle proj
proj GetPageHandle page1 [proj GetActivePage ]
page1 GetWindowHandle win1 [page1 GetActiveWindow]
win1 SetClientType "Animation"
win1 GetClientHandle po1
po1 GetModelHandle mo1 [po1 GetActiveModel ]

mo1 GetSelectionSetList # i can see the available set list with this command

 

I cant find the way to select only a particular set (knowing its name or id).

 

Thanks in advance for the help

Share this post


Link to post
Share on other sites

Hello again
 

I never undertood when experts like you dont want to answer questions. Is it that the question is too hard to answer or too dumb?

Or is it such a secret that you don't want to reveal it?

Sometimes a simple answer like "NO we cant do that" is sufficient and it is confusing to see no reply.

 

Anyways you guys provided help till now so thanks for that. I will surely find myself answer for this soon.

Share this post


Link to post
Share on other sites

Hi Roche,

 

You can try the below commands to Set you need:

 set setHandle [$modelHandle GetSelectionSetHandle setH1 "Set $id"]
 set nameSet [setH1 GetLabel]

# Can also be:

 set setHandle [$modelHandle GetSelectionSetHandle setH2 "User_Set $id"]
 set nameSet [setH2 GetLabel]

# User_Set or Set are called pool can be found through GetPoolList 
# Refer documentation for more info. 

 

vipin, Guy01 and tinh like this

Share this post


Link to post
Share on other sites
On 3/9/2019 at 5:59 PM, Roche said:

Hello again
 

I never undertood when experts like you dont want to answer questions. Is it that the question is too hard to answer or too dumb?

Or is it such a secret that you don't want to reveal it?

Sometimes a simple answer like "NO we cant do that" is sufficient and it is confusing to see no reply.

 

Anyways you guys provided help till now so thanks for that. I will surely find myself answer for this soon.

 

 

I don't have an answer but I will not say no we can't do because someone else could have right answer, just he is busy. ^_^

Guy01 likes this

Share this post


Link to post
Share on other sites

Hi Livil Lyle

 

Thanks for the code, that helped.

Below code to do a "isolate only" operation by commands. I tried this today and it works!

 

 

image.png.823145cf6867d801818c68f3d140fca0.png

 

Livil Lyle likes this

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
You are posting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...