mdlIModelClient GetSaveOption

Gets the value for the given key. The key value can be set using the SetSaveOption command.

Syntax

mdlIModelClient_Handle GetSaveOptionkey

Application

MotionView Tcl Query

Description

This command retrieves the value for a given key. The key value can be set using the SetSaveOption command.

Inputs

key
The saving option which can be queried. Valid values are: data, include, write_solvermode, or topology.

Example

To get the value for a given key:
hwi GetSessionHandle sess1
sess1 GetProjectHandle pro1
pro1 GetPageHandle pa1 [pro1 GetActivePage]
pa1 GetWindowHandle win1 [pa1 GetActiveWindow]
win1 GetClientHandle mcl
mcl GetSaveOption topology
mcl ReleaseHandle;
win1 ReleaseHandle;
pa1 ReleaseHandle;
pro1 ReleaseHandle;
sess1 ReleaseHandle;

Errors

Returns the option value for the given key. If there is an error, an error code will be returned.