mdlIModelClient GetModelHandle
Gets the handle of the root node of the current model.
Syntax
mdlIModelClient_Handle GetModelHandlehandle_name
Application
MotionView Tcl Query
Description
This command retrieves the handle of the Model which is loaded in the client (with mdlIModelClient_Handle as the handle). This handle can further be used to edit the properties of the entity or to get the child handle.
Inputs
- handle_name
- The handle name of the MODEL.
Example
hwi GetSessionHandle sess1
sess1 GetProjectHandle pro1
pro1 GetPageHandle pa1 [pro1 GetActivePage]
pa1 GetWindowHandle win1 [pa1 GetActiveWindow]
win1 GetClientHandle mcl
mcl GetModelHandle mo
mcl ReleaseHandle;
win1 ReleaseHandle;
pa1 ReleaseHandle;
pro1 ReleaseHandle;
sess1 ReleaseHandle;
Errors
Returns 0 if successful, otherwise an error code.