Unable to export onshape CAD using smexportonshape command
Ältere Kommentare anzeigen
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
Dyuman Joshi
am 8 Dez. 2025
Gaétan
am 8 Dez. 2025
The error can be reproduced here as well -
url = 'https://cad.onshape.com/documents/cf9c955bb70156079b967c24/w/66ea37a15aee79c55616fb7f/e/08ba52c98bc70c8845cc4efc';
kayak_xml_file = smexportonshape(url);
Format as Assembly is correct.
Also, I am able to open the link in my Onshape account. Though the file shows it is read-only.
Could it be due to that? File location being not being fully accessible?
Gaétan
am 9 Dez. 2025
Dyuman Joshi
am 10 Dez. 2025
"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.
Antworten (0)
Kategorien
Mehr zu Simscape Multibody finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!