MATLAB Answers


Interaction between MATLAB and SolidWorks.

Asked by MAX3D
on 24 Aug 2012

Hi, support

I work in technical support of SolidWorks and one of my customers that have the need to export files in MATLAB to analyze. I wonder if the program accepts files of my program, as extensions .sldprt or .sldasm, if not, which he accepts CAD files.

Best regards, Cássio Dahmer


I have now gone through past Questions about connecting Solidworks with MATLAB, and have given them the tag "solidworks".

Hi Cassio, We wanted something to talk back and forth from SolidWorks to MATLAB in real time rather than one time using XML files. We wanted the changes in MATLAB to be immediately reflected in SolidWorks. We found this tool called CADLab which helped reduce the cycles between SolidWorks and MATLAB. It is available at

Hope that helps out.




1 Answer

Answer by Walter Roberson
on 24 Aug 2012

When I look through past questions, and look at the documentation, it appears to me that there is no provided support for sldprt or sldasm files. What I do see is that SimMechanics can handle STL files and possibly some other types.

Please see for a couple of references.

A past posting of relevance to importing from Solidworks


Join the 15-year community celebration.

Play games and win prizes!

Learn more
Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!