mdlIModelClient SaveModel
Saves the model to a file as mdl data.
Syntax
mdlIModelClient_Handle SaveModel save_macro
Application
MotionView Tcl Modify
Description
This command saves the model to a file as mdl data. An option is also available to specify whether or not to save the topology (when saving).
Inputs
- save_macro
- Instructs MotionView to save only the data, or both the data and the topology. Valid options are: PDF and MDL. If ‘save_macro’ equals PDF, the topology will not be saved.
Example
To save the model to a file as mdl data:
hwi GetSessionHandle sess1
sess1 GetProjectHandle pro1
pro1 GetPageHandle pa1 [pro1 GetActivePage]
pa1 GetWindowHandle win1 [pa1 GetActiveWindow]
win1 GetClientHandle mcl
mcl GetRootObjectHandle mo
mo InterpretEntity en Point p_0 "\"Point 0\""
en ReleaseHandle;
mo InterpretEntity en Body b_0 "\"Body 0\""
en ReleaseHandle;
mcl SaveModel {C:/temp/out.pdf} PDF
mcl ReleaseHandle;
win1 ReleaseHandle;
pa1 ReleaseHandle;
pro1 ReleaseHandle;
sess1 ReleaseHandle;
Errors
Returns 0 if successful, otherwise an error code.