Error using smexportonshape command

8 views (last 30 days)
Aarish Shah
Aarish Shah on 22 Mar 2021
Answered: Gargi Patil on 25 Mar 2021
While trying to export my CAD model into an xml file using smexportonshape, i got the following error:
Error using fopen
Unable to find file. Ensure file exists and path is valid.
Error in smexportonshape_implementation
Error in smexportonshape_implementation
Error in smexportonshape (line 38)
xmlFileName = smexportonshape_implementation(url, varargin{:});
Error in mbdproject_xml (line 2)
xmlfile_mbd = smexportonshape(url);
Here is my code:
url = "https://cad.onshape.com/documents/05690ca95ec8f00d95e91967/w/53f3dc710c674a90f806995d/e/64e9b9125b0372db0a0b8d65";
xmlfile_mbd = smexportonshape(url);
What is going wrong? Any help would be appreciated. Thanks!

Answers (1)

Gargi Patil
Gargi Patil on 25 Mar 2021
The error thrown by smexportonshape described above has been recorded in the following bug report:
You can try the workaround mentioned in the report or update to R2020a.
You can also verify the following:
  1. Ensure there are no AntiVirus of Firewalls installed on the system that are blocking anything in the MATLAB installation directory.
  2. Check to see if there are any restrictions on the user account and computer that may prevent MATLAB from using its embedded web framework.
  3. If your network setting uses HTTP proxy, modify your network configuration to add an HTTP proxy exception.

Categories

Find more on Introduction to Installation and Licensing in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!