Racing Lounge

Best practices and teamwork for student competitions

Import CAD assemblies to Simscape Multibody™ 13

Posted by Christoph Hahn,

With this post, let me talk about 3D multibody simulation and specifically focus on getting CAD data into a simulation environment.


Vehicle dynamics engineers want to simulate dynamic behavior of their suspension designs during early stages of development. They may ask questions such as “Can we keep the roll center between certain bounds while racing a specific track?”.  These questions can be addressed using 3D multibody simulation.

As a starting point on that field, the MathWorks student competition team has developed a Simscape Multibody™ online training course. This course teaches the basics of multibody simulation. To complement the course, I have created some video podcast episodes on more involved topics such as parametric CAD import or hands-on know-how about numerical optimization.

Onshape CAD Import

Now to the specific step of getting CAD data into your preferred simulation environment. Release 2017a of MATLAB® / Simulink® introduces an interface to a browser based CAD tool called Onshape. I found this feature quite interesting and want to share it with you. I am also interested in your thoughts about whether that feature may simplify your workflow. Find here a link to Onshape in case you want to try it out on your own after watching the video below.

[VIDEO] MATLAB and Simulink Racing Lounge “Importing CAD Assemblies into Simscape Multibody

Bigger Picture – The General Workflow

I hope you found the video helpful. Let me now try to embed the new feature into the bigger picture of supported workflows. No matter what CAD tool you are using, getting CAD assemblies into Simscape Multibody™ is a two-step process.

  1. Generate the files needed to import into the Simscape Multibody™.
  2. Import a multibody model from a URDF or Simscape Multibody™ XML file using >>smimport.

Note: Step #1 may differ depending on the CAD tool you are using.

  • Onshape Import, >>smexportonshape, see video above
  • Simscape Multibody Link plugin. Currently this option is available for PTC Creo® (Pro/ENGINEER®), SOLIDWORKS®, and Autodesk® Inventor® (checked: April 6th 2017).
  • Convert models to one of the tools supported by the Simscape Multibody Link plugin.
  • MathWorks partner tools such as from Saneon
  • Convert to CAD neutral formats: IGES, SAT, STEP, ACIS, JT, Parasolid, DXF, etc.


I am interested to read your comments and questions! I am interested in your opinion whether Onshape has the potential to become the “one-fits-most” tool.

Cheers Christoph

13 CommentsOldest to Newest

Maik replied on : 1 of 13

I have read so many articles or reviews concerning the blogger lovers except this paragraph is actually a good post,
keep it up.

Colleen replied on : 2 of 13

Greetings I am so thrilled I found your blog, I really found you
by accident, while I was browsing on Askjeeve for something else, Nonetheless I am here now
and would just like to say many thanks for a remarkable post and a all
round exciting blog (I also love the theme/design), I don’t have time to
read through it all at the moment but I have book-marked it and also included your RSS feeds, so when I have time I will be
back to read more, Please do keep up the excellent work.

Rosetta replied on : 4 of 13

This website truly has all the information and facts I needed about this subject and didn’t know who to ask.

Ross replied on : 5 of 13

Every weekend i used to pay a visit this site, because i want enjoyment, for the reason that this this web
page conations genuinely nice funny information too.

Christoph Hahn replied on : 6 of 13

Thanks everybody for that feedback! I definitively will keep on blogging …
Are there some topics that you are interested in and you want me to cover in future?
Happy to take productive feedback!

kong replied on : 7 of 13

Wenn I use Live Editor, I write the code “smexportonshape((‘[assembly URL]’, ” ,the Matlab tells me ” Undefined function ‘ smexportonshape ‘ for input argument”,what can i do?

Alycia replied on : 10 of 13

Just want to say your article is as astonishing.
The clarity to your submit is just excellent and that i can think you’re a professional in this
subject. Fine with your permission allow me to take hold of your
feed to keep up to date with forthcoming post. Thank you a million and please carry on the rewarding work.29163

Christoph Hahn replied on : 11 of 13

Thanks Alycia for your feedback! Of course, feel more than welcome to subscribe to that blog or other MathWorks blogs.

Eleanore replied on : 12 of 13

I have to thank you for the efforts you’ve put
in penning this website. I’m hoping to check out the same high-grade blog posts by you in the future as well.
In fact, your creative writing abilities has inspired me to get my own website now ;)6100

Everette replied on : 13 of 13

There’s definately a great deal to know about this topic.
I really like all of the points you have made.146832

Add A Comment

Your email address will not be published. Required fields are marked *

Preview: hide