File Exchange

image thumbnail

Onshape CAD Export to Simscape Multibody

version (487 KB) by Steve Miller
Export Onshape CAD assembly to Simscape Multibody, including part and joint information.


Updated 24 Feb 2017

View License

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:

Cite As

Steve Miller (2020). Onshape CAD Export to Simscape Multibody (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (5)

John Dzielski

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.

David Wilding

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.
Caused by:
['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

Steve Miller

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.

Xing gao

MATLAB Release Compatibility
Created with R2016b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!