poIPartSet GetParentID

Gets the ID of the parent of a part set in the part hierarchy.

Syntax

poIPartSet_handle GetParentID

Application

HyperView Tcl Query

Description

This command retrieves the ID of the parent of a part set in the part hierarchy.

Example

To get the parent ID of part set 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 GetPartSetHandle part_set_handle 4
part_set_handle GetParentID
hwi CloseStack

Errors

Returns 0 if an error occurs or there is no parent in the hierarchy for the part set. On error sets the error condition on the session handle. See session_handle GetError.