mdlIModelClient GetRootObjectHandle

Gets the handle of root node of the current model.

Syntax

mdlIModelClient_handle GetRootObjectHandlehandle_name

Application

MotionView Tcl Query

Description

This command retrieves the handle of the root object. The root object is nothing but the Model.

Inputs

handle_name
The handle name of the root.

Example

To get the handle of the root object of the current model:
hwi GetSessionHandle sess1
sess1 GetProjectHandle pro1
pro1 GetPageHandle pa1 [pro1 GetActivePage]
pa1 GetWindowHandle win1 [pa1 GetActiveWindow]
win1 GetClientHandle mcl
mcl GetRootObjectHandle mo
mcl ReleaseHandle;
win1 ReleaseHandle;
pa1 ReleaseHandle;
pro1 ReleaseHandle;
sess1 ReleaseHandle;

Errors

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