mdlIObject GetFullVarname

Obtains the full variable of the child object.

Syntax

mdlIObject_handle GetFullVarname or [set varname mdlIObject_handle GetFullVarname]

Application

MotionView Tcl Query

Description

This command obtains the full variable of the child object. You need to grab the appropriate handle to get the desired variable name. The full variable name is used when the variable is used as an argument, etc.

Example

An MDL model must be loaded prior to using this command.

To get the full variable of a body in a model:
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
set Body_Var [body_handle GetFullVarname]
myModelName EndChildFastGet
body_handle ReleaseHandle
myModelName ReleaseHandle
myClientName ReleaseHandle
myWindowName ReleaseHandle
myPageName ReleaseHandle
myProjectName ReleaseHandle
mySessionName ReleaseHandle
hwi CloseStack

Errors

Returns the full variable of the child object, which can be stored as a string in a variable or a list.