Load: Load Command
Command ElementLoad_Commandコマンドは、指定されたMotionSolve XMLファイルからコマンドブロックを読み取って、コマンド要素を実行します。
フォーマット
<Load_Command
Command_File = "valid_file_name.xml"
/>
属性
- Command_File
- 読み込むMotionSolve XMLファイルの名前。
例
下の例は、Load_Commandを使用してcmd.xmlという名前のMotionSolve XMLファイルを読み込んでから、それに含まれる3つのsimulateコマンドを実行する方法を示しています。
<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"
/>
</Command>
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"
/>
</Command>
コメント
- 任意の一般的なMotionSolve XMLファイルを指定できます。MotionSolveは、指定されたファイルからコマンドブロックのみを読み取ります。