Download SimMechanics Visualization and Import Guide

Transcript
5
Computer-Aided Design Translation
Modify Pendulum Assembly and Update SimMechanics Model
Note: The modified double pendulum model, dpen_withsensors, prior to the assembly
changes, is available as a SimMechanics example, mech_update_sensors.
You can change part properties in the original assembly and reimport the assembly,
with those changes, to update the model. You can also make direct changes by hand to
the original generated model and preserve those changes even as you update it with
assembly changes.
In this example, you now cut out material from the links to make them lighter. You also
connect joint and body sensors in the SimMechanics model to implement a controller.
Now you want to update the SimMechanics model with changes from the assembly
without undoing the additions you made by hand.
Export Modified CAD Assembly
Change the double pendulum assembly and generate a new XML file from it.
1
Open the pend part file and unsuppress the Extrude2 feature to enable the hole in
the parts. Do this by right-clicking Extrude2 in the tree view and selecting Resume.
Save the part file.
2
5-24
Open and re-export the dpen assembly file to obtain the new XML file, which is
assumed to be named dpen_with_holes.xml.