This example guides you through the export procedure for a CAD
assembly with name
sm_robot.xml. The assembly models
an industrial robot arm that contains a grip subassembly.
Your SimMechanics Link installation includes CAD assemblies that you can open and export. You can find the CAD files in the following folder:
matlabrootportion of the path refers to your MATLAB® root folder—for example,
c:\program files\MATLAB\R2015a. You can see your MATLAB root folder by entering
matlabrootat the MATLAB command prompt.
The procedure in this example is general and applicable to all supported CAD platforms. For platform-specific steps, click the appropriate link in the following table.
|For CAD platform...||...click here|
|Autodesk Inventor®||Export Robot Assembly from Autodesk Inventor Software|
|Export Robot Assembly from Creo Software|
|SolidWorks®||Export Robot Assembly from SolidWorks Software|
Complete the following steps to export the robot CAD assembly in second-generation format. The procedure generates one SimMechanics™ Import XML file and a set of geometry files in STEP or STL format. Import the files into SimMechanics to generate a model that replicates the CAD assembly.
In a supported CAD platform, open assembly file
On the CAD menu bar, click SimMechanics Link.
Select Export into SimMechanics First Generation or Export into SimMechanics Second Generation.
In the Save As dialog box, enter the export file name and click OK.