Show elements in a pre-defined set in hw

Guy01
Guy01 Altair Community Member
edited October 2020 in Community Q&A

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

Answers

  • Guy01
    Guy01 Altair Community Member
    edited March 2019

    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.

  • Q.Nguyen-Dai
    Q.Nguyen-Dai Altair Community Member
    edited March 2019

    Calme-toi !!!

  • Guy01
    Guy01 Altair Community Member
    edited March 2019

    TG toi!

  • llyle_20499
    llyle_20499 New Altair Community Member
    edited March 2019

    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. 

     

  • tinh
    tinh Altair Community Member
    edited March 2019

    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. ^_^/emoticons/default_happy.png' srcset='/emoticons/happy@2x.png 2x' title='^_^' width='20' />

  • Guy01
    Guy01 Altair Community Member
    edited March 2019

    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