poIPartAssembly SetVisibility

Sets the part assembly visibility.

Syntax

poIPartAssembly_handle SetVisibility state

Application

HyperView Tcl Modify

Description

This command sets the visibility of the part assembly. Setting the visibility of the part assembly will also affect the visibility of all child part assemblies and components within the part assembly hierarchy.

Inputs

mode
Show/Hide the part assembly (true/false).

Example

To hide part assembly 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 GetPartAssemblyHandle part_assembly_handle 2
part_assembly_handle SetVisibility false
hwi CloseStack

Errors

Returns HW_InvalidHandle (3) if the part assembly handle is invalid.