mdlIObject GetVarname
Obtains the variable of the child object.
Syntax
mdlIObject_handle GetVarname or set varname [mdlIObject_handle GetVarname]
Application
MotionView Tcl Query
Description
This command obtains the variable of the child object. You need to grab the appropriate handle in order to get the desired variable name.
Example
An MDL model must be loaded prior to using this command.
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 BeginFlatListFastGet Body
myModelName GetChildHandleByIdx body_handle 2
tk_messageBox -message "Variable name of object: [body_handle GetVarname]";
myModelName EndChildFastGet;
body_handle ReleaseHandle;
myModelName ReleaseHandle;
myClientName ReleaseHandle;
myWindowName ReleaseHandle;
myPageName ReleaseHandle;
myProjectName ReleaseHandle;
mySessionName ReleaseHandle;
hwi CloseStack;
Errors
Returns the variable of the child object, which can be stored as a string in a variable or a list.