Code covered by the BSD License  

Highlights from
CAD to MATLAB to SimMechanics

Be the first to rate this file! 31 Downloads (last 30 days) File Size: 7.89 MB File ID: #47070
image thumbnail

CAD to MATLAB to SimMechanics


Steve Miller (view profile)


Export a CAD assembly to a MATLAB data structure and import into a SimMechanics model.

| Watch this File

File Information

This file contains data2smixml(), which is MATLAB code that converts a MATLAB data structure into a SimMechanics model. A macro written in Visual Basic extracts CAD assembly information from a SolidWorks assembly into a specific MATLAB data structure. That MATLAB data structure is converted to a SimMechanics XML file using the MATLAB function data2smixml(). The resulting SimMechanics XML file can be imported into a SimMechanics model using smimport().
A Visual Basic macro is provided to show an algorithm for extracting data from a CAD assembly. Assemblies in SolidWorks, Wildfire, Creo (formerly Pro/Engineer), and Inventor can be exported to a SimMechanics XML file using SimMechanics Link. If you are using another CAD system, this example can help you write a macro for your CAD system.

Please read the README.txt file to get started.

Watch this video to see how SimMechanics Link works

To find other physical modeling examples, search for posts with the keyword "physical modeling"

To learn more about MathWorks Physical Modeling Products, go to:

Required Products SimMechanics
MATLAB release MATLAB 8.3 (R2014a)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.

Contact us