Load: Load Command
Command ElementThe Load_Command command reads the command block from a specified MotionSolve XML file and executes the command elements.
Format
<Load_Command
     Command_File = "valid_file_name.xml"
/>Attributes
- Command_File
 - The name of the MotionSolve XML file to be loaded.
 
Example
The following example demonstrates using the Load_Command to load a MotionSolve XML file, called cmd.xml and then executing the three simulate commands it contains.
<Command
   <Load_Model
      model_file          = "save1.xml"
      result_file         = "output.mrf"
      anima_file          = "output.h3d"
   />
   <Simulate
      analysis_type       = "Transient"
      end_time            = "5."
      print_interval      = "0.01"
   />
   <Load_Command
      command_file        = "cmd.xml"
   />
   <Simulate
     analysis_type        = "Transient"
     end_time             = "10."
     print_interval       = "0.01"     
   />  
/>
The contents of the file cmd.xml are as follows.
<Command
  <Simulate
     analysis_type       = "Transient"
     end_time            = "6."
     print_interval      = "0.01"     
  />  
  <Simulate
     analysis_type       = "Transient"
     end_time            = "7."
     print_interval      = "0.01"     
  />
  <Simulate
     analysis_type       = "Transient"
     end_time            = "8."
     print_interval      = "0.01"     
  />  
 />
      Comments
- Any general MotionSolve XML file can be specified. MotionSolve will read only the command block from the specified file.