scripts for hide/show in hyperview

Altair Forum User
Altair Forum User
Altair Employee
edited April 2022 in Community Q&A

Hi!

 

I am new in python scripts and I would like to know if someone knows how to make a script that allows to hide everything that the model and let see for example a certain range of ids. That is ... a code that filters and leaves in sight only a certain range of IDS qe.

thank youu!!

Tagged:

Answers

  • llyle_20499
    llyle_20499 New Altair Community Member
    edited June 2018

    Hi Yolanda,

     

    You can do via Tcl script, Click on View and turn on Command Window, run the below code line by line to get an understanding. 
     

    hwi OpenStack
    hwi GetSessionHandle session_handle
    session_handle GetProjectHandle project_handle
    project_handle GetPageHandle page_handle [project_handle GetActivePage]
    page_handle GetWindowHandle window_handle [page_handle GetActiveWindow]
    window_handle GetClientHandle client_handle
    client_handle GetModelHandle model_handle [client_handle GetActiveModel]
    # To Mask All
    model_handle MaskAll
    client_handle Draw

    # To UnMask All
    model_handle UnMaskAll
    client_handle Draw
    hwi CloseStack

     

    Regards,

    llyle

     

  • Adeline War_20893
    Adeline War_20893 Altair Community Member
    edited April 2022

    Hi Yolanda,

     

    You can do via Tcl script, Click on View and turn on Command Window, run the below code line by line to get an understanding. 
     

    hwi OpenStack
    hwi GetSessionHandle session_handle
    session_handle GetProjectHandle project_handle
    project_handle GetPageHandle page_handle [project_handle GetActivePage]
    page_handle GetWindowHandle window_handle [page_handle GetActiveWindow]
    window_handle GetClientHandle client_handle
    client_handle GetModelHandle model_handle [client_handle GetActiveModel]
    # To Mask All
    model_handle MaskAll
    client_handle Draw

    # To UnMask All
    model_handle UnMaskAll
    client_handle Draw
    hwi CloseStack

     

    Regards,

    llyle

     

    Thank you @llyle Could you me how to mask certain components and not all?