poIModel GetPartAssemblyHandle
Gets a handle to the given part assembly by ID.
Syntax
poIModel_handle GetPartAssemblyHandle handle id
Application
HyperView Tcl Query
Description
This command retrieves a handle to the given part assembly by ID.
Inputs
- handle
- The part assembly handle to be set.
- part_locator
- The ID of the part assembly.
Example
To get the part assembly handle for the part assembly with id
4:
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 4
hwi CloseStack
Errors
Returns HW_InvalidHandle (3) if the model handle is invalid, PO_InvalidID (2038) if the passed in the part assembly id is invalid, and HW_AllocFailed (10) if the allocation of the part handle failed.