scripts for hide/show in hyperview


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

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