|On this page…|
In this example, you export an assembly with one part and no constraints. Look for the following two example CAD files in the SimMechanics™ Link examples folder:
The full assembly file, cup_assembly.ASSEMBLYFILETYPE
The part, a cup, in a file called cup.PARTFILETYPE
Although it has only one part, you must export the full assembly into XML, not just the cup part.
Open the cup assembly file in your CAD platform and check its geometry and mass properties.
Cup Assembly in a CAD Platform
|Volume||0.0001 cubic meters (m3)|
|Surface area||0.0381 square meters (m2)|
|Density||3.0 grams/cm3 = 3000 kg/m3|
|Mass||0.2906 kilograms (kg)|
|Principal moments of inertia at |
the center of gravity
|Ix = 0.00015, Iy =
Iz = 0.00067 kg-m2
The inertia tensor is computed at the center of gravity, with the coordinate axes aligned with assembly base-origin axes, indicated in the figure. The x-axis is the cup's axis of symmetry, and the y- and z-axes point across the cup.
Using the SimMechanics Link interface to your CAD platform, export the assembly into Physical Modeling XML format. The XML file cup_assembly.xml appears in your working CAD folder.
Once you have generated the Physical Modeling XML file, you are ready to import the cup assembly into a SimMechanics model. For a step-by-step description of the CAD Import procedure, see Import a CAD Rigid Body.