Unable to open CAD files in simulink using smimport and mech_import
Info
This question is closed. Reopen it to edit or answer.
Show older comments
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
Nicolas Schmit
on 2 Oct 2017
Could you provide the .m file that produces this error?
Omkar Bhanap
on 24 Oct 2017
Nicolas Schmit
on 24 Oct 2017
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.
Omkar Bhanap
on 24 Oct 2017
Nicolas Schmit
on 27 Oct 2017
The command
mech_import('Assem2.xml')
worked fine on my computer.
Omkar Bhanap
on 5 Nov 2017
Nicolas Schmit
on 9 Nov 2017
Can you tell me which operating you are using, and if you have non ASCII characters in the path to the xml file?
Omkar Bhanap
on 4 Dec 2017
Answers (0)
This question is closed.
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!