mdlIObject IsImplicit
Determines if the object is implicitly defined (that is, it was not defined explicitly by the user).
Syntax
mdlIObject_handle IsImplicit
Application
MotionView Tcl Query
Description
This command determines if the object is implicitly defined (that is, it was not defined explicitly by the user). B_Ground exists on all models, therefore it is implicitly defined. For the variable names/labels defined by the user, IsImplicit returns false (for example, P_0). P_0.x has IsImplicit return true, since the x data member always exists on P_0.
This command is available once you grab the model handle and subsequent object handles.
Example
To find if the data member "mass" is the final node in the hierarchy tree:
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 IsImplicit
myModelName GetChildHandle body_handle b_crank
body_handle IsImplicit
body_handle ReleaseHandle
myModelName GetChildHandle body_handle B_Ground
body_handle IsImplicit
body_handle GetChildHandle mass_handle mass
mass_handle IsImplicit
mass_handle ReleaseHandle
body_handle ReleaseHandle
myModelName ReleaseHandle
myClientName ReleaseHandle
myWindowName ReleaseHandle
myPageName ReleaseHandle
myProjectName ReleaseHandle
mySessionName ReleaseHandle
hwi CloseStack
Errors
Returns true if implicit, otherwise false.