🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

scripts for hide/show in hyperview

User: "Altair Forum User"
Altair Employee
Updated by Altair Forum User

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!!

Find more posts tagged with

Sort by:
1 - 2 of 21
    User: "llyle_20499"
    New Altair Community Member
    Updated by llyle_20499

    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

     

    User: "Adeline War_20893"
    Altair Community Member
    Updated by Adeline War_20893

    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?