poIAssembly GetParentID
Gets the ID of the parent assembly of an assembly.
Syntax
assem_handle GetParentID
Application
HyperView Tcl Query
Description
This command retrieves the parent ID of an assembly.
Example
To get the parent assembly ID for an
assembly:
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]
# Assuming that the model contains an assembly whose id is 1
model_handle GetAssemblyHandle assem_handle 1
assem_handle GetParentID
hwi CloseStack
Errors
None.