This file enables the export of CAD assemblies from Onshape® for use in Simscape Multibody. The entire assembly is exported, including geometry, mass, inertia, joints, and other important aspects of the CAD model. No installation of CAD software is required.
You need an account with Onshape – sign up at
Please read the README.txt file to get started.
To find other Simscape examples, search for posts with the keyword "physical modeling"
To learn more about MathWorks Simscape Products, go to:
Steve Miller (2020). Onshape CAD Export to Simscape Multibody (https://www.mathworks.com/matlabcentral/fileexchange/60820-onshape-cad-export-to-simscape-multibody), MATLAB Central File Exchange. Retrieved .
I am wondering if this function no longer works. I am running r2019b on OSX Mojave. I removed the _16b from the call to smexportonshape_16b. It seems to be running the version that installed with Matlab. What I get is a blank Matlab web browser screen. I changed the setting in Preferences so Matlab used the default web browser and what pops up is a window with a code from OnShape saying to copy the code and paste it in your application. I am guessing that OnShape changed how it authenticates, and this application needs to be updated. I have not searched to see if there is a fix yet.
Hi, When I create my model and try to assemble it I get an error that reads:
['WattLinkage2']: The following errors were found in the model WattLinkage2.
['WattLinkage2/Solver Configuration']: *** Model not assembled: position violation *** Resolve this issue in order to simulate the model.
Any ideas on how to fix this? I am running Matlab R2018b
K F: Make sure you have installed Simscape and Simscape Multibody. Both of these are required for export. It sounds like you do not have them installed. --Steve
Hi, I am getting a "Undefined function or variable 'pmsl_checklicense'." when trying to run this. Any ideas? I'm on R2016b.
Formatted description only - no change to files.
Adjusted description to highlight Automation Technology tradeshow event Feb 7-9 in Anaheim, California.