mdlIModelClient RunSolverScript

Runs a solver script.

Syntax

mdlIModelClient_Handle RunSolverScriptFilename

Application

MotionView Tcl Modify

Description

This command displays text in the message log.

Inputs

Filename
The name of the xml file to be used as the solver script.

Example

Creates a model using the file specified.

Copy the file slider_crank.mdl into the present working directory.

The present working directory can be identified by using the pwd command in the command window.
hwi OpenStack
hwi GetSessionHandle sess1
sess1 GetProjectHandle pro1
pro1 GetPageHandle pa1 [pro1 GetActivePage]
pa1 GetWindowHandle win1 [pa1 GetActiveWindow]
win1 GetClientHandle mcl
mcl CreateModel "slider_crank.mdl" mdl
mcl ExportModel "model.xml"
mcl RunSolverScript "model.xml"
mcl ReleaseHandle;
win1 ReleaseHandle;
pa1 ReleaseHandle;
pro1 ReleaseHandle;
sess1 ReleaseHandle;
hwi CloseStack;

Errors

None.