poIModel GetPartSetHandle

Gets a handle to the given part set by ID.

Syntax

poIModel_handle GetPartSetHandle handle id

Application

HyperView Tcl Query

Description

This command retrieves a handle to the given part set by ID.

Inputs

handle
The part set handle to be set.
id
The ID of the part set.

Example

To get the part set handle for the part set 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 GetPartSetHandle part_set_handle 4
hwi CloseStack

Errors

Returns HW_InvalidHandle (3) if the model handle is invalid, PO_InvalidID (2038) if the passed in the part set id is invalid, and HW_AllocFailed (10) if the allocation of the part handle failed.