Unable to export onshape CAD using smexportonshape command

42 Ansichten (letzte 30 Tage)
Gaétan
Gaétan am 8 Dez. 2025 um 14:20
Kommentiert: Dyuman Joshi am 10 Dez. 2025 um 13:34
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 Kommentare
Gaétan
Gaétan vor etwa 21 Stunden
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 vor etwa eine Stunde
"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.

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Model Import finden Sie in Help Center und File Exchange

Produkte


Version

R2025b

Community Treasure Hunt

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

Start Hunting!

Translated by