Importing CAD model from OnShape

I am trying to import a CAD model from OnShape.
I tried running the example given here https://www.mathworks.com/help/physmod/sm/ref/smexportonshape.html but I get the following error -
"Error using smexportonshape_implementation"
"Failed to complete user authentication."
"Error in smexportonshape (line 38)"
"xmlFileName = smexportonshape_implementation(url, varargin{:});"
"Error in OnShape_try (line 2)"
"xmlfile = smexportonshape(url);"
When I run the script, I am redirected in my browser to a page which says Success and gives me a random code.
I am runnning Matlab R2019b
Thanks in advance

댓글 수: 2

LEO LEON
LEO LEON 2019년 10월 14일
same problem here...
Muhammad Atif Ali
Muhammad Atif Ali 2020년 5월 12일
same problem here

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

답변 (1개)

Harshal Upadhyay
Harshal Upadhyay 2019년 10월 25일

0 개 추천

There is a bug report rgarding this https://www.mathworks.com/support/bugreports/1974098
Please try the following workaorund :
In the MATLAB toolstrip, on the Home tab, in the Environment settings, click Preferences. In the left pane of the Preferences settings, click Web. In the MATLAB Web Preferences settings, clear the Use system web browser when opening links to external sites (recommended) check box.
You can also upgrade to the R2019b Update1 which contains the fix to this bug.

댓글 수: 5

Muhammad Atif Ali
Muhammad Atif Ali 2020년 5월 12일
The builtin browser is not showing any thing and stuck on white screen.
Aarish Shah
Aarish Shah 2021년 3월 18일
i am facing the same error even after the update
Mosedi Edwin Maphale
Mosedi Edwin Maphale 2021년 10월 13일
I'm using MATLAB R2020b and I faced the same error.
Since I'm using campus WIFI, I selected "Use a proxy server to connect to the internet" and used the campus WIFI proxy host and port, together with my username and password. Then the error was fixed.
Adilson
Adilson 2025년 8월 7일
Apparently, bug 1974098 related to the authentication process error in OnShape has returned in Matlab version R2025a.
However, even after applying the proposed solution of disabling the default option "Use system web browser when opening links to external sites (recommended)," the issue remains unresolved, and the page opened during the execution of the smexportonshape function still appears completely blank.
Has anyone managed to solve this problem?
Mateusz
Mateusz 2025년 10월 1일
@Adilson I have the same problem. So far i could not find a solution for that. Let me know if you were able to solve it.

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

카테고리

도움말 센터File Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

질문:

2019년 10월 14일

댓글:

2025년 10월 1일

Community Treasure Hunt

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

Start Hunting!

Translated by