Unable to export onshape CAD using smexportonshape command

조회 수: 43 (최근 30일)
Gaétan
Gaétan 2025년 12월 8일 14:20
댓글: Dyuman Joshi 2025년 12월 10일 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
Gaétan
Gaétan 2025년 12월 9일 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 대략 3시간 전
"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.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Model Import에 대해 자세히 알아보기

태그

제품


릴리스

R2025b

Community Treasure Hunt

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

Start Hunting!

Translated by