This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

Export a CAD Rigid Body

Access the Example Files

In this example, you export an assembly with one part and no constraints. Look for the following two example CAD files in the Simscape™ Multibody™ 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.

Examine Rigid Body Parameters

Open the cup assembly file in your CAD platform and check its geometry and mass properties.

Cup Assembly in a CAD Platform

Volume0.0001 cubic meters (m3)
Surface area0.0381 square meters (m2)
Density3.0 grams/cm3 = 3000 kg/m3
Mass0.2906 kilograms (kg)
Principal moments of inertia at
the center of gravity
Ix = 0.00015, Iy = 0.00067,
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.

Export CAD Rigid Body

Using the Simscape Multibody Link interface to your CAD platform, export the assembly as an XML mutlibody description file. The XML file cup_assembly.xml appears in your working CAD folder.

Import CAD Rigid Body

Once you have generated the XML multibody description file, you are ready to import the cup assembly into a Simscape Multibody model. For a step-by-step description of the CAD Import procedure, see Import a CAD Rigid Body (Simscape Multibody).

Was this topic helpful?