mdlIModelClient ImportFile

Imports the model from the file specified.

Syntax

mdlIModelClient_Handle ImportFilefilename

Application

MotionView Tcl Modify

Description

This command imports the model from the file specified.

Inputs

filename
The name of the file from which the model is to be imported. The valid file type is ADAMS.

Example

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"
mcl SetSolverMode ADAMS
mcl SetImportOption reader "ADAMS"
mcl ExportModel "Slider_crank.adm"
mcl CreateBlankModel;
mcl ImportModel "Slider_crank.adm";
mcl ReleaseHandle;
win1 ReleaseHandle;
pa1 ReleaseHandle;
pro1 ReleaseHandle;
sess1 ReleaseHandle;
hwi CloseStack;

Errors

None.