mdlIObject SaveObject

Saves the model to a specified location.

Syntax

mdlIObject_handle SaveObject

Application

MotionView Tcl Modify

Description

This command saves the model to a specified location.

Example

To save an object/model:
Note: Load the slider_crank.mdl model file before running this example.
hwi OpenStack
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 GetModelHandle myModelName 
myModelName SaveObject "C:/slider_crank_new.mdl" ;  #Or specify the pathname that you require#
myModelName ReleaseHandle
myClientName ReleaseHandle
myWindowName ReleaseHandle
myPageName ReleaseHandle
myProjectName ReleaseHandle
mySessionName ReleaseHandle
hwi CloseStack

Errors

Returns 0 if successful, otherwise an error code.