poIPartSet SetVisibility
Sets the part set visibility.
Syntax
poIPartSet_handle SetVisibility state
Application
HyperView Tcl Modify
Description
This command sets the visibility of the part set. Setting the visibility of the part set will also affect the visibility of all child part set and part assemblies within the part set hierarchy.
Inputs
- state
- Show/Hide the part set (true/false).
Example
To hide part set 2:
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]
model_handle GetPartSetHandle part_set_handle 2
part_et_handle SetVisibility false
hwi CloseStack
Errors
Returns HW_InvalidHandle (3) if the part set handle is invalid.