poIAssembly SetParentID

Sets/changes the parent of an assembly to a different parent ID.

Syntax

assem_handle SetParentIDid

Application

HyperView Tcl Modify

Description

This command sets/changes the parent of an assembly to a different parent ID.

Inputs

id
The new parent assembly ID.

Example

To set/change (re-parent) an assembly with an ID of 2 to a parent whose ID is 3:
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 GetAssemblyHandle assem_handle 2
assem_handle SetParentID 3

hwi CloseStack

Error

Returns an non-zero value if an error occurs.