SimMechanics Import fails with original examples

I'm trying to import a CAD Modell exported via sim mechanics link out of Autodesk Inventor 2015 into Matlab 2014b.
No matter which kind of model I'm using I get different kind of errors and exceptions by using smimport(). I even tried to export and import the robot.iam used in the examples at http://de.mathworks.com/help/physmod/sm/ug/import-robot-arm-model.html
>> smimport('robot.xml')
Caught "std::exception" Exception message is:
bad lexical cast: source type value could not be interpreted as target
If I try to import the already in the setup included export files (sm_robot.xml) it works fine.
I compared the two xml files but did not see any markable differences (they are not identically since the original file seems to be generated via a solidworks export, but I can't see any problems in the file)
Any Ideas what I'm doing wrong??

2 comentarios

Josef Liebhart
Josef Liebhart el 17 de Abr. de 2015
Movida: Walter Roberson el 23 de Oct. de 2024
Hey Ricardo, did you solve the Problem yet?
I have got the same one...
I would be pleasured by an answer.
Niklas Lohmar
Niklas Lohmar el 8 de Abr. de 2020
"It seems that is a bug in SimMechanics Link caused by decimal issue ( "." vs. "," ). As an workaround, try to replace the commas with full stops (".") in the XML file." Thanks to @Emanuel Dogaru. I have fixed the problem with this easy Way.
If you change this Regional Settings, all xml-fils will run in the future.

Iniciar sesión para comentar.

Respuestas (1)

Emanuel Dogaru
Emanuel Dogaru el 18 de Mayo de 2015

8 votos

It seems that is a bug in SimMechanics Link caused by decimal issue ( "." vs. "," ). As an workaround, try to replace the commas with full stops (".") in the XML file.

10 comentarios

Paras Arpra
Paras Arpra el 11 de Ag. de 2015
Editada: Paras Arpra el 11 de Ag. de 2015
Thanks a lot. Spoiled almost half a day trying to figure out the problem. Yours is the only solution that fixed the problem at the root.
It is ridiculous that based on the location of installation, Inventor uses either "." or "," for decimals.
Felipe Cherfan
Felipe Cherfan el 10 de Mzo. de 2016
Movida: Walter Roberson el 23 de Oct. de 2024
That is the solution... replace "," to "." its ridiculous a softWare that costs a lot of money doing this with us. I spent 4 ours of my day searching the solution, ridiculous.
law Bob
law Bob el 6 de Mzo. de 2018
God Bless you, worked just fine for me
You just saved the day! Amazing this is still an issue in 2018...
Edwin Villarreal
Edwin Villarreal el 22 de Abr. de 2019
Movida: Walter Roberson el 23 de Oct. de 2024
excellent... thanks a lot
Muchas gracias, increible la solución tan simple. Llevaba varias horas intentando arreglar ese error.
Dominik Huber
Dominik Huber el 30 de Mzo. de 2020
Movida: Walter Roberson el 23 de Oct. de 2024
Thanks, had the same problem...
Mateo Henao Arenas
Mateo Henao Arenas el 9 de Nov. de 2020
Movida: Walter Roberson el 23 de Oct. de 2024
Thank you. It works!!!
samuel E. IGLESIAS DIAZ
samuel E. IGLESIAS DIAZ el 28 de Jun. de 2021
Movida: Walter Roberson el 23 de Oct. de 2024
i have this problem, i need to solve this problem
bad lexical cast: source type value could not be interpreted as target

Iniciar sesión para comentar.

Categorías

Más información sobre Introduction to Installation and Licensing en Centro de ayuda y File Exchange.

Preguntada:

el 13 de Feb. de 2015

Movida:

el 23 de Oct. de 2024

Community Treasure Hunt

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

Start Hunting!

Translated by