Documentation

Export a Stewart Platform from Creo Software

In this example, you export a Stewart platform assembly from a Creo™ (Pro/ENGINEER®) CAD platform. The export procedure generates one XML file and a set of geometry files that you can import into Simscape™ Multibody™ to generate a new model.

The example begins with a procedure to export the CAD assembly. Information on CAD files and CAD Export follows the export procedure. To import the robot assembly into a Simscape Multibody model, see Import a Robotic Arm CAD Model (Simscape Multibody).

The following figure shows the Stewart platform assembly you export in this example.

Example Requirements

To successfully complete this example, you must meet the following requirements:

  • Have the latest version of Simscape Multibody Link installed on your machine.

  • Have completed the linking procedure for your Creo installation. The linking procedure adds a Simscape Multibody Link add-in to the Creo installation.

  • Have access to the Stewart Platform example files that accompany the Simscape Multibody Link installation. See About the Example CAD Files.

Open the Assembly Model

Before you can export the robot assembly, you must load the assembly in a Creo session.

  1. Open Creo on your machine.

  2. Select File > Open

  3. Navigate to the file directory that contains the robot CAD files.

    Note

    The directory that contains the robot CAD files for the Creo platform is

    <MATLAB Root>\toolbox\physmod\smlink\smlinkdemos\proe\stewart

  4. Select file stewart_platform.ASM.

  5. Click Open.

The CAD platform opens the Stewart platform assembly.

Export the Model

Once you successfully open the CAD assembly in your Creo installation, you can export the assembly in format:

  1. In the Creo toolbar, select Simscape Multibody Link > Export and click Simscape Multibody.

  2. In the File name field of the Select Folder dialog box, enter select a directory to export the files into.

    Note

    Do not enter a name in the File name field. The field should contain only a dot .

  3. Click Open.

  4. In the new dialog box, enter file name sm_stewart_platform and click the green arrow.

    Note

    Simscape Multibody Link generates a new XML multibody description file and a set of geometry files that you can import into a model.

You can proceed to import the robot assembly into a Simscape Multibody model. The import model assumes the XML multibody description file you generated in this example has the name sm_stewart_platform.xml. If the file has a different name, change the name to sm_stewart_platform before proceeding. See Import a Robotic Arm CAD Model (Simscape Multibody).

Check the Exported Files

Confirm the following files exist in the specified export directory:

 XML Multibody Description File

 Geometry Files

About the Example CAD Files

The CAD assembly files are present in your Simscape Multibody Link installation. You can access the files in the following directory:

<matlabroot>\matlab\toolbox\physmod\smlink\smlinkdemos\...
...proe\stewart
Substitute <matlabroot> with the root directory of your MATLAB® installation.

Note

If you are not sure what your MATLAB root directory is, at the MATLAB command line enter matlabroot. MATLAB returns the root directory for your installation.

The \stewart directory contains a set of CAD files that define each CAD part and CAD assembly. Part file names contain the file extension .PRT. Assembly file names contain the extension .asm.

About CAD Export

The CAD export procedure generates one XML multibody description file and a set of geometry files. The XML file contains the structure of the assembly and the parameters that define each part. The geometry files define the 3-D geometry of each part. Once the export procedure is complete, you can import the XML multibody description file into Simscape Multibody software. Simscape Multibody uses the file to automatically generate a new Simscape Multibody model.

Was this topic helpful?