mdlIObject IsSystem

Determines whether an entity is a system or not.

Syntax

mdlIObject_handle IsSystem

Application

MotionView Tcl Query

Description

This command determines whether an entity is a system or not.

Example

To check if the entity is a system:
Note: Load the slider_crank.mdl model file before running this example.
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 hand_1 p_cp
hand_1 IsSystem
myModelName BeginFlatListFastGet System
myModelName GetChildHandleByIdx hand_2 1
hand_2 IsSystem
myModelName EndChildFastGet
hand_2 ReleaseHandle
hand_1 ReleaseHandle
myModelName ReleaseHandle
myClientName ReleaseHandle
myWindowName ReleaseHandle
myPageName ReleaseHandle
myProjectName ReleaseHandle
mySessionName ReleaseHandle
hwi CloseStack

Errors

Returns true if the entity is a system, otherwise false. If a system does not exist at the specified index position, the command prompt returns 7.