Unable to export onshape CAD using smexportonshape command

42 views (last 30 days)
Hi,
I try to export my CAD assembly on Matlab R2025b using the command smexportonshape(url). I understand that for this command to work, it needs to connect to my Onshape account. However, before being able to do so, this error appears :
Error using smexportonshape_implementation
Unable to load a message catalog 'sm:smexportonshape'. Please check the file location and format.
Error in smexportonshape_implementation
Error in smexportonshape_implementation
Error in smexportonshape_implementation
Error in smexportonshape_implementation
xmlFileName = smexportonshape_implementation(url, varargin{:});
It seems that this error existed in previous versions of Matlab, and that a workaround had been found (see here or here) but it doesn't seem to work on Matlab R2025b version.
Does anyone has a solution to this problem ?
I am on Windows 11, with administrator permissions.
  5 Comments
Gaétan
Gaétan on 9 Dec 2025 at 17:32
I guess it could be this, but I don't think that it is possible to give more permissions via a shared link on Onshape.
So I tried with Matlab R2024b, and it works perfectly. It opens a pop-up window which enables to connect to your Onshape account. And once you are connected, it automatically imports the model.
When I try this on Matlab R2025b, it opens a new tab on my browser (in my case chrome) leading to the connection page of Onshape. But on Matlab, the program crashes just after launching the webpage.
So maybe the problem comes from the fact that on Matlab R2025b, it doesn't open a pop-up window but it quits Matlab to launch a new tab in Chrome which maybe causes the program to crash ?
Dyuman Joshi
Dyuman Joshi 2 minutes ago
"So maybe the problem comes from the fact that on Matlab R2025b, it doesn't open a pop-up window but it quits Matlab to launch a new tab in Chrome which maybe causes the program to crash ?"
It could be due to that.
I do not have R2025b, otherwise I would have tested the same and checked out the issue.
I suggest that you file a bug report for this issue - Contact Support > Product Usage > Report a bug.

Sign in to comment.

Answers (0)

Categories

Find more on Model Import in Help Center and File Exchange

Products


Release

R2025b

Community Treasure Hunt

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

Start Hunting!