mdlIObject GetSystemHandle
Gets the handle to the system from anywhere in the hierarchy (after the model handle).
Syntax
mdlIObject_handle GetSystemHandle sys_handle
Application
MotionView Tcl Query
Description
This command obtains the handle to the system from anywhere in the hierarchy (after the model handle). The handle is used only to get the main system handle, not the systems defined by user.
Inputs
- sys_handle
- The new name of the handle.
Example
To use this command there has to be a system defined in the model.
To get the system handle from the joint handle:
hwi OpenStack
hwi GetSessionHandle mySessionName
mySessionName GetProjectHandle myProjectName
set activePageNum [myProjectName GetActivePage]
myProjectName GetPageHandle myPageName $activePageNum
set activeWinNum [myPageName GetActiveWindow]
myPageName GetWindowHandle myWindowName $activeWinNum
myWindowName GetClientHandle myClientName
myClientName GetModelHandle myModelName
myModelName GetChildHandle joint_handle j_0;
joint_handle GetSystemHandle sys_handle;
joint_handle ReleaseHandle;
sys_handle ReleaseHandle;
myModelName ReleaseHandle;
myClientName ReleaseHandle;
myWindowName ReleaseHandle;
myPageName ReleaseHandle;
myProjectName ReleaseHandle;
mySessionName ReleaseHandle;
hwi CloseStack;
Errors
Returns the name of the system in which the current objects resides. This command is used to find out the system to which an object belongs to.