Unable to open CAD files in simulink using smimport and mech_import

I'm using MATLAB 2017a, sponsored license.I was trying to open a model using smimport() command but it gave following errors: "Error using smimport_implementation Invalid file identifier. Use fopen to generate a valid file identifier.
Error in smimport (line 154) smimport_implementation(multibodyDescriptionFile, varargin{:});" . I also tried the same using mech_import() but got the same error. Please help me out this problem. Are there are any other options for importing CAD files to Simulink.

8 Comments

Could you provide the .m file that produces this error?
The error was produced while opening .xml file. I was trying to open the first generation .xml file but got an error as mentioned above. I cannot upload the .xml file because it is an unsupported format to upload on this site. Please help me out this problem.
You can upload a zip file with the xml file inside.
It seems you get an error when MATLAB closes the file, but I cannot tell you why without the file.
The command
mech_import('Assem2.xml')
worked fine on my computer.
Not working on my laptop.I got the same error as mentioned above. Can you please tell me what might be the reason?
Can you tell me which operating you are using, and if you have non ASCII characters in the path to the xml file?
I reinstalled MATLAB and now its working fine.

Answers (0)

This question is closed.

Asked:

on 1 Oct 2017

Closed:

on 15 Dec 2017

Community Treasure Hunt

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

Start Hunting!