mdlIObject SaveAs
Saves the model to a specified file.
Syntax
mdlIObject_handle SaveAsfile_name
Application
MotionView Tcl Modify
Description
This command saves the model to a new file which is given as an input to the command.
Inputs
- file_name
- The full path of the file where the model is to be saved.
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 SaveAs {C:\temp.mdl}
obj_handle ReleaseHandle;
myModelName ReleaseHandle
myClientName ReleaseHandle
myWindowName ReleaseHandle
myPageName ReleaseHandle
myProjectName ReleaseHandle
mySessionName ReleaseHandle
Errors
Returns 0 if successful, otherwise an error code.