Using RBD commands from the IronPython console
It is possible to use any RBD commands you would use during a
simulation from the IronPython console, outside of the simulation environment.
The following command snippets and instructions provide a demonstration of
this capability:
You can access the IronPython console by clicking the File > Scripting > Open
Command Window menu item.
The following code snippets load the RBD command module into IronPython:
You can read an already-solved rigid body dynamics model using the following
code:
The environment and system objects are accessed in the following way:
It is now possible to alter properties of the simulation. For example, you
could modify the end time and restart from 0.5 s:
Once you have made your changes, make use the following code snippet to save
the modified database:
Note
You cannot restart a Rigid Dynamics analysis using this procedure if the model
has contact or a Point On Curve joint, or if there are multiple load steps.
Was this page helpful?