| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → SimMechanics Link |
| Contents | Index |
| Learn more about SimMechanics Link |
| On this page… |
|---|
About CAD Translation with Custom Export Custom Translation Steps in Common with Standard Export |
The translation process from an externally defined machine representation to a SimMechanics model is the same whether you use the standard export with a supported external third-party platform or create your own custom exporter. The SimMechanics Link exporter translates mechanical system data from an external application, such as a computer-aided design (CAD) platform. You can use this translated data to generate a SimMechanics model of your original mechanical system.

You must create and use your own custom exporter when:
You want to export an assembly from a CAD platform that the SimMechanics Link utility does not support.
The standard export from a supported CAD platform does not yield the results that you want.
CAD translation includes CAD assembly export and SimMechanics model import. Export requires:
A CAD platform or application, including access to its application programming interface (API)
MATLAB installed and registered as a server
The SimMechanics Link utility, which includes its own API
A custom exporter module that you create and that transfers assembly information from the CAD platform API to the SimMechanics Link API
Import requires SimMechanics software.
You generate SimMechanics models from Physical Modeling XML files. You use mechanical import and then visualize the models with stereolithographic (STL) files. Custom export creates an XML file to represent a CAD assembly and a set of STL files to represent the surface geometries of the assembly bodies. This part of CAD translation is the same as standard export.
See the Getting Started with Export and Computer-Aided Design Translation chapters.
From Physical Modeling XML to Visualizable SimMechanics Model

For custom export, you must create a custom exporter module that interacts with the APIs of both the CAD platform and the SimMechanics Link utility. From a CAD assembly, this custom exporter module creates a selective, intermediate representation of the machine that persists for one session. The module then finishes by creating the same files as the standard export does:
A Physical Modeling XML file representing selected data required to generate a SimMechanics model, which is written from the selective representation
A set of STL files to represent the surface geometries of the assembly bodies
Custom Export: From CAD Assembly to Physical Modeling XML

To create a custom exporter:
Access the API of your CAD platform and understand how to call it from an external program. See your CAD platform documentation.
Access the SimMechanics Link API and understand how to call it from an external program.
Write the custom exporter module in C/C++.
The module might be an executable or a linked library, depending on your CAD platform requirements and API.
![]() | Custom Linking to CAD and Other External Applications | Translating Machines from External to Physical Modeling Representations with the API | ![]() |

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |