Unable to export onshape CAD using smexportonshape command

39 vues (au cours des 30 derniers jours)
Gaétan
Gaétan le 8 Déc 2025 à 14:20
Commenté : Dyuman Joshi le 10 Déc 2025 à 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 commentaires
Gaétan
Gaétan il y a environ 20 heures
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 il y a 27 minutes
"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.

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Model Import dans Help Center et File Exchange

Produits


Version

R2025b

Community Treasure Hunt

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

Start Hunting!

Translated by