Error in smimport(' ') command: Illegal use of reserved keyword "end" AND Attempt to execute SCRIPT smimport as a function
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Eleni.T
le 10 Juil 2020
Réponse apportée : madhan ravi
le 11 Juil 2020
Hello. I tried to import a CAD model from solidworks (xml file format) to simsape multibody, using the smimport command. The command does not seem to work as i get the following error:
Error: File: smimport.m Line: 170 Column: 1
Illegal use of reserved keyword "end".
When i click on the error the following file appears:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/330245/image.jpeg)
Does anyone knows what is this error?
I then tried to run the matlab as administrator and delete the 'end' from line 170. Then i got a different error:
>> smimport('sm_Assem.xml')
Attempt to execute SCRIPT smimport as a function:
C:\Program Files\MATLAB\R2018b\toolbox\physmod\sm\import\m\smimport.m
I have no idea what is this script file and i am afraid i will mess it up if i try to modify it.
Any help would be really appreciated.
Thank you
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/330299/image.jpeg)
6 commentaires
Réponse acceptée
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Model Import dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!