{"id":10,"date":"2017-05-03T12:00:15","date_gmt":"2017-05-03T12:00:15","guid":{"rendered":"https:\/\/blogs.mathworks.com\/student-lounge\/?p=10"},"modified":"2019-08-30T21:20:37","modified_gmt":"2019-08-30T19:20:37","slug":"import-cad-assemblies-to-simscape-multibody","status":"publish","type":"post","link":"https:\/\/blogs.mathworks.com\/student-lounge\/2017\/05\/03\/import-cad-assemblies-to-simscape-multibody\/","title":{"rendered":"Import CAD assemblies to Simscape Multibody\u2122"},"content":{"rendered":"<p>With this post, let me\u00a0talk about 3D multibody simulation and specifically focus on getting CAD data into a simulation environment.<\/p>\n<h2>Motivation<\/h2>\n<p>Vehicle dynamics engineers want to simulate dynamic behavior of their suspension designs during early stages of development. They may ask questions such as <em>\u201cCan we keep the roll center between certain bounds while racing a specific track?\u201d. <\/em>\u00a0These questions can be addressed using 3D multibody simulation.<\/p>\n<p>As a starting point on that field, the <a href=\"https:\/\/www.mathworks.com\/academia\/student-competitions.html\">MathWorks student competition team <\/a>has\u00a0developed a\u00a0<a href=\"https:\/\/www.mathworks.com\/academia\/student-competitions\/physical-modeling-training.html\">Simscape Multibody\u2122 online training course<\/a>. This course teaches the basics of multibody simulation. To complement the course, I\u00a0have created some video podcast episodes on more involved topics such as\u00a0parametric CAD import\u00a0or hands-on know-how about\u00a0<a href=\"https:\/\/de.mathworks.com\/videos\/matlab-and-simulink-racing-lounge-design-optimization-whats-behind-it-118827.html\">numerical optimization<\/a>.<\/p>\n<h2>Onshape CAD Import<\/h2>\n<p>Now to the specific step of getting CAD data into your preferred simulation environment.<em>\u00a0<\/em>Release 2017a of MATLAB\u00ae \/ Simulink\u00ae introduces an interface to a browser based CAD tool called <a href=\"https:\/\/www.onshape.com\">Onshape<\/a>. 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 <a href=\"https:\/\/www.onshape.com\/cad-pricing?utm_campaign=Mathworks&amp;utm_source=Referrals\">link to Onshape<\/a> in case you want to try it out on your own after watching the video below.<\/p>\n<p><strong>[VIDEO]<\/strong>\u00a0MATLAB and Simulink Racing Lounge \u201c<a href=\"https:\/\/www.mathworks.com\/videos\/matlab-and-simulink-racing-lounge-importing-cad-assemblies-into-simscape-multibody-1491402752220.html\">Importing CAD Assemblies into Simscape Multibody<\/a>&#8220;<\/p>\n<p><div class=\"row\"><div class=\"col-xs-12 containing-block\"><div class=\"bc-outer-container add_margin_20\"><videoplayer><div class=\"video-js-container\"><video data-video-id=\"5386154011001\" data-video-category=\"blog\" data-autostart=\"false\" data-account=\"62009828001\" data-omniture-account=\"mathwgbl\" data-player=\"rJ9XCz2Sx\" data-embed=\"default\" id=\"mathworks-brightcove-player\" class=\"video-js\" controls><\/video><script src=\"\/\/players.brightcove.net\/62009828001\/rJ9XCz2Sx_default\/index.min.js\"><\/script><script>if (typeof(playerLoaded) === 'undefined') {var playerLoaded = false;}(function isVideojsDefined() {if (typeof(videojs) !== 'undefined') {videojs(\"mathworks-brightcove-player\").on('loadedmetadata', function() {playerLoaded = true;});} else {setTimeout(isVideojsDefined, 10);}})();<\/script><\/div><\/videoplayer><\/div><\/div><\/div><\/p>\n<h2>Bigger Picture &#8211; The General Workflow<\/h2>\n<p>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\u2122 is a two-step process.<\/p>\n<ol>\n<li>Generate the files needed to import into the Simscape Multibody\u2122.<\/li>\n<li>Import a multibody model from a URDF or Simscape Multibody\u2122 XML file using <a title=\"https:\/\/www.mathworks.com\/help\/releases\/R2017a\/physmod\/sm\/ref\/smimport.html (link no longer works)\">&gt;&gt;smimport<\/a>.<\/li>\n<\/ol>\n<p><strong><em>Note:<\/em><\/strong> Step #1 may differ depending on the CAD tool you are using.<\/p>\n<ul>\n<li><a href=\"https:\/\/www.mathworks.com\/products\/simmechanics\/onshape.html\">Onshape Import<\/a>, &gt;&gt;smexportonshape, see video above<\/li>\n<li><a href=\"a.%09https:\/www.mathworks.com\/help\/releases\/R2017a\/physmod\/sm\/ug\/installing-and-linking-simmechanics-link-software.html\">Simscape Multibody Link plugin<\/a>. Currently this option is available for PTC Creo\u00ae (Pro\/ENGINEER\u00ae), SOLIDWORKS\u00ae, and Autodesk\u00ae Inventor\u00ae (checked: April 6th 2017).<\/li>\n<li>Convert models to one of the tools supported by the Simscape Multibody Link plugin.<\/li>\n<li>MathWorks partner tools such as from <a href=\"http:\/\/www.saneon.de\/cms\/index.php\/en\/produkte.html\">Saneon<\/a><\/li>\n<li>Convert to CAD neutral formats: IGES, SAT, STEP, ACIS, JT, Parasolid, DXF, etc.<\/li>\n<\/ul>\n<h2>Conclusion<\/h2>\n<p>I am interested to read your comments and questions! I am interested in your opinion whether Onshape has the potential to become the \u201cone-fits-most\u201d tool.<\/p>\n<p>Cheers Christoph<\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"thumbnail thumbnail_asset asset_overlay video\"><a href=\"https:\/\/blogs.mathworks.com\/student-lounge\/2017\/05\/03\/import-cad-assemblies-to-simscape-multibody\/?dir=autoplay\"><img decoding=\"async\" src=\"https:\/\/cf-images.us-east-1.prod.boltdns.net\/v1\/static\/62009828001\/94a2feb2-45be-4e69-bc6b-1ed3eb96ec66\/ecaf2b71-5d10-4ae8-a62d-dce2c984c279\/1280x720\/match\/image.jpg\" onError=\"this.style.display ='none';\"\/><\/p>\n<div class=\"overlay_container\">\n      <span class=\"icon-video icon_color_null\"><time class=\"video_length\">12:00<\/time><\/span>\n      <\/div>\n<p>      <\/a><\/div>\n<p>With this post, let me\u00a0talk about 3D multibody simulation and specifically focus on getting CAD data into a simulation environment.<br \/>\nMotivation<br \/>\nVehicle dynamics engineers want to simulate dynamic&#8230; <a class=\"read-more\" href=\"https:\/\/blogs.mathworks.com\/student-lounge\/2017\/05\/03\/import-cad-assemblies-to-simscape-multibody\/\">read more >><\/a><\/p>\n","protected":false},"author":151,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[4,6,11,12],"tags":[],"_links":{"self":[{"href":"https:\/\/blogs.mathworks.com\/student-lounge\/wp-json\/wp\/v2\/posts\/10"}],"collection":[{"href":"https:\/\/blogs.mathworks.com\/student-lounge\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.mathworks.com\/student-lounge\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/student-lounge\/wp-json\/wp\/v2\/users\/151"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/student-lounge\/wp-json\/wp\/v2\/comments?post=10"}],"version-history":[{"count":17,"href":"https:\/\/blogs.mathworks.com\/student-lounge\/wp-json\/wp\/v2\/posts\/10\/revisions"}],"predecessor-version":[{"id":3394,"href":"https:\/\/blogs.mathworks.com\/student-lounge\/wp-json\/wp\/v2\/posts\/10\/revisions\/3394"}],"wp:attachment":[{"href":"https:\/\/blogs.mathworks.com\/student-lounge\/wp-json\/wp\/v2\/media?parent=10"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/student-lounge\/wp-json\/wp\/v2\/categories?post=10"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/student-lounge\/wp-json\/wp\/v2\/tags?post=10"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}