*SetActiveCommandSet()

Creates a set active command set.

Syntax

*SetActiveCommandSet(varname|NONE)

Arguments

varname|NONE
The variable name of the command set that is active when the .adm/.acf file is exported.
NONE = no command set information is exported to the .acf file.
Type: varname

Example

*BeginMDL(the_model, "Example model")
*Analysis(the_analysis, "The analysis", andef)
*DefineAnalysis(andef)
  *ActionOnlyForcePair(frc_0, "Force 0", TRANS, B_Ground,
                       P_Global_Origin, 
                       Global_Frame)
  *SetForce(frc_0, ,1,2,3,4,5,6)
  *CommandSet(the_command set, "Simple command set", evdef, frc_0, tpl_begin, tpl_end)
  *Template(tpl_begin, "Begin template", USER, tpldef_commandset_begin)
  *Template(tpl_end, "End template", USER, tpldef_commandset_end)
  *Template(tpl_superfluous, "Should be ignored", ACF, tpldef_commandset_begin)
*EndDefine()
*DefineCommandSet(evdef, local_frc_0, local_tpl_begin, local_tpl_end)
  *Write(local_tpl_begin)
  *SetForce(local_frc_0, ,7,8,9,10,11,12)
  *Write(local_tpl_end)
*EndDefine()
*DefineTemplate(tpldef_commandset_begin)
{AbsToRelative(Solver_File_basename.path, Solver_File_basename.value + 
".adm")}
PREFERENCES/SIMFAIL=STOPCF
*EndDefine()
*DefineTemplate(tpldef_commandset_end)
STOP
*EndDefine()
*SetActiveCommandSet(the_commandset)
*EndMDL()

Context

*Analysis()

Comments

*SetActiveCommandSet() activates the state of an command set in MotionView. The statements within active command sets are passed to the solver command file during either the save solver step or run solver step. A maximum of one active command set is allowed within a MotionView analysis.