mdlIModelClient UpdateObjectInBrowser

Updates the entity info (if it is present) in the browser and updates the corresponding views.

Syntax

mdlIModelClient_Handle UpdateObjectInBrowser recursive

Application

MotionView Tcl Modify

Description

This command updates the entity info (if it is in the browser) and updates the corresponding views. If the recursive argument is set to true, the update will be done on the object and its children recursively.

Inputs

recursive
A boolean input value:
True
The children of the entity will also be updated recursively.
False
Only the entity will be updated.

Example

To update the entity info in the browser and the corresponding views:
hwi GetSessionHandle sess1
sess1 GetProjectHandle pro1
pro1 GetPageHandle pa1 [pro1 GetActivePage]
pa1 GetWindowHandle win1 [pa1 GetActiveWindow]
win1 GetClientHandle mcl
mcl GetRootObjectHandle mo
mcl UpdateObjectInBrowser mo true
mo ReleaseHandle
mcl ReleaseHandle;
win1 ReleaseHandle;
pa1 ReleaseHandle;
pro1 ReleaseHandle;
sess1 ReleaseHandle;

Errors

Returns 0 if successful, otherwise an error code.