mdlIObject SaveAll
Saves the model.
Syntax
mdlIObject_handle SaveAllsuppress_warnings
Application
MotionView Tcl Modify
Description
This command saves the Model to the same file that was used to load it.
Inputs
- suppress_warnings
-
- True
- Suppress all warnings.
- False
- Show warnings if any.
Example
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 CreateModel slider_crank.mdl
myClientName GetModelHandle myModelName
myModelName GetObjectHandle obj_handle
obj_handle InterpretEntity en Point p_0 "\"Point 0\""
en ReleaseHandle
obj_handle SaveAll
obj_handle ReleaseHandle;
myModelName ReleaseHandle
myClientName ReleaseHandle
myWindowName ReleaseHandle
myPageName ReleaseHandle
myProjectName ReleaseHandle
mySessionName ReleaseHandle
Errors
Returns 0 if successful, otherwise an error code.