poIPart GetPartAssemblyID
Gets the ID for the part assembly that contains a component.
Syntax
poIPart_handle GetPartAssemblyID
Application
HyperView Tcl Query
Description
This command returns the ID of the part assembly that contains a component.
Example
To get the part assembly ID of a component with id
1:
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 GetPartHandle part_handle "Part 1"
part_handle GetPartAssemblyID
hwi CloseStack
Errors
Returns 0 if no part assembly ID is found for the component or an error occurred.