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.
- Generate the files needed to import into the Simscape Multibody™.
- 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.
9 CommentsOldest to Newest
I have read so many articles or reviews concerning the blogger lovers except this paragraph is actually a good post,
keep it up.
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.
Very good article. I’m facing some of these issues as well..
This website truly has all the information and facts I needed about this subject and didn’t know who to ask.
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.
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!
Wenn I use Live Editor, I write the code “smexportonshape((‘https://cad.onshape.com/documents/2d5c0c72cf8a49f59d60fb1b/w/a005335084f044cfae483209/e/089ef407bf5e40ac8ab5b6b4/[assembly URL]’, ” ,the Matlab tells me ” Undefined function ‘ smexportonshape ‘ for input argument”,what can i do?
Hi, Thanks for the note! Could you please send the link to the OnShape assembly to email@example.com. I will give it a try and let you know. Cheers Christoph
Reply to Kong – smexportonshape became a builtin function of Simscape Multibody starting from 2017a. The issue you were facing is probably caused by the wrong MATLAB version. Also, if 2016b is the latest version you could get, you may use this. https://www.mathworks.com/matlabcentral/fileexchange/60820-onshape-cad-export-to-simscape-multibody