Why can't I use the smexportonshape command?

28 ビュー (過去 30 日間)
FRANCESCO
FRANCESCO 2024 年 9 月 19 日
コメント済み: Adilson 2025 年 8 月 7 日
I am trying to export a CAD project from the onshape site using the smexportonshape command, unfortunately I cannot and I get the following error:
Error using smexportonshape_implementation
Unrecognized function or variable 'webddg'.
Error in smexportonshape_implementation
Error in smexportonshape_implementation
Error in smexportonshape_implementation
Error in smexportonshape_implementation
Error in smexportonshape (line 38)
xmlFileName = smexportonshape_implementation(url, varargin{:});
The code generating this error is as follows:
url='https://cad.onshape.com/documents/2a5e8c96d62ce15acc994fad/w/eb883feaa01eed105705899c/e/13eef5b473a063c621e6bfcf';
smexportonshape(url)

回答 (2 件)

Saurabh
Saurabh 2024 年 9 月 23 日
I understand that you are experiencing some errors when attempting to use the smexportonshape command to export a CAD project from the onshape website:
I discovered that this bug has been reported and fixed in previous iterations while reading through the official MathWorks documentation, however it appears that it has resurfaced. Therefore, my recommendation would be for you to attempt the workaround listed there and see if it resolves the issue.
So, 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.
The same information can be found here:
I Hope this was helpful.
  1 件のコメント
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?

サインインしてコメントする。


FRANCESCO
FRANCESCO 2024 年 9 月 23 日
I solved everything by uninstalling and installing matlab

カテゴリ

Help Center および File ExchangeAssembly についてさらに検索

製品


リリース

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by