Simmechanics load solidworks assembly error
Mostrar comentarios más antiguos
Hi,
I'm trying to open a assembly from solidworks into simmechanics. Everything goes well until I try to open my xml file with the command
mech_import('smTotal.xml').
I always get next error.
Error using PMImport.ModelReader
"XML Read error" while attempting to read file "smTotal.xml".
Error in PMImport.ModelUpdater
Error in PMImport.pmiu_import
Error in mech_import (line 97)
PMImport.pmiu_import(varargin{:});
Does anybody know how I could solve this? or what the problem is?
3 comentarios
Muhammad Khird Added
el 24 de Jul. de 2019
i am having same problem, can soemeone help us out with this
sakthinathan s
el 1 de Oct. de 2019
hello sir,
Try using the command smimport(' .xml') for importing the .xml files
Huynh Huan
el 2 de Oct. de 2021
Thank you very much, it's working
Respuesta aceptada
Más respuestas (3)
Omar Crypps
el 2 de Oct. de 2016
0 votos
Hi, I designed a model of 1 degree of freedom on Solidworks and i followed all the steps to export it to the Simulink of Matlab. However, there is always an error that appears after exporting it on Simlink.
Unfortuntely, I can't add a screen shot here but the error tells me " Constraint is not supported , the constraint has been exported as unknown constraint .

Diego Leonardo Velásquez Gómez
el 25 de En. de 2018
0 votos
Hello, I have the same problem as Omar Cryps, I've been using the smimport() function but it doesn't work, so please, somebody help me
samet türkay
el 15 de Abr. de 2019
0 votos
eyvallah steve gardaş
Categorías
Más información sobre Model Import en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!