*RegisterSolverScript()

Adds a new solver invoke script to the Run Solver option in MotionView.

Syntax

*RegisterSolverScript ( script_name, "script label", ADAMS|SIMPACK|ABAQUS|DADS|NASTRAN solver, "path", NOARGS|ARGUMENTS, arg1, arg2, ...)

Application

MotionView

Inputs

script_name
The variable name of the script.
"script label"
The descriptive label of the script.
ADAMS|ABAQUS|DADS|NASTRAN solver
The solver associated with the script.
or
The label of the registered solver.
"path"
The path of the script to run the solver.
NOARGS|ARGUMENTS
Flag which indicates if MotionView will send arguments into the script file when the script file is called.
arg1, arg2, ...
Additional arguments can be:
SOLVER_INPUT
Includes the basename.ext of the solver input file in the invoke script.
SOLVER_COMMAND
Includes the basename.ext of the solver command file in the invoke scipt.
SOLVER_PARAM
Includes the basename.ext of the solver parameters file in the invoke script.
GRAPHICS
Includes the basename.ext of the solver graphics file in the invoke script.
BASENAME
The basename of the solver input file.
DIRECTORY
The path to the solver input file.

Context

*BeginDefaults()

*BeginMDLDefaults()

*BeginModelDefaults()

Example

*BeginDefaults() 
  *SetAutoSaveInterval(60) 
  *AddPrinter("lj1", "lpr") 
  *AddPrinter("lj2", "lpr -Plj2") 
  • • •
  *BeginModelDefaults()  
    *BeginModelGUIDefaults()  
      *BeginUserMode(mode1, "Designer") 
*Hide(Markers, Beams, Forces, Motions, Outputs)
      *EndUserMode()  
    *EndModelGUIDefaults()  
    *BeginMdlDefaults() 
*RegisterSolverScript(run_adams, "Solve in ADAMS", 
ADAMS, { getenv("ALTAIR_HOME") + 
"/utility/mbd/launch_scripts/
PC_run_adams.bat"}, ARGUMENTS,
SOLVER_COMMAND )
*RegisterSolverScript(MotionSolve_remotemc,
"MotionSolve_remotemc", 
MotionSolve, "C:/Program Files/
Expect-5.21/bin/tclsh80.exe", 
ARGUMENTS, "C:/gmudgal/config/
runremote_ms.tcl", SOLVER_INPUT)
    *EndMdlDefaults()
  *EndModelDefaults()
  • • •
*EndDefaults