mdlIDataMember GetRefObjectHandle

Gets the handle of the object to which a reference data member is resolved to.

Syntax

mdlIDataMember_handle GetRefObjectHandle ref_handle, resolve_ref

Application

MotionView Tcl Query

Description

This command gets the handle of the object to which either a reference data member is resolved to, or the reference data member itself.

Inputs

ref_handle
The handle name used for the referenced entity.
resolve_ref
A boolean value which is by default true.
True (Default)
he handle of the object to which the reference data member is resolved to will be returned.
False
The handle of the reference data member itself will be returned.

Example

To get a handle to an object to which a reference data member is resolved to:
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_cra_con_rev
joint_handle GetChildHandle myhandle b1 false
myhandle GetRefObjectHandle ref_handle true;
myhandle ReleaseHandle
joint_handle ReleaseHandle
myModelName ReleaseHandle
myClientName ReleaseHandle
myWindowName ReleaseHandle
myPageName ReleaseHandle
myProjectName ReleaseHandle
mySessionName ReleaseHandle

Error

Returns the handle of the object. If there is an error, an error code will be returned.