필터 지우기
필터 지우기

SimMechanics Import fails with original examples

조회 수: 12 (최근 30일)
Ricardo
Ricardo 2015년 2월 13일
답변: samuel E. IGLESIAS DIAZ 2021년 6월 28일
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??
  댓글 수: 1
Niklas Lohmar
Niklas Lohmar 2020년 4월 8일
"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.

댓글을 달려면 로그인하십시오.

답변 (7개)

Emanuel Dogaru
Emanuel Dogaru 2015년 5월 18일
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.
  댓글 수: 5
Alexander Vasco
Alexander Vasco 2020년 3월 1일
Muchas gracias, increible la solución tan simple. Llevaba varias horas intentando arreglar ese error.

댓글을 달려면 로그인하십시오.


Josef Liebhart
Josef Liebhart 2015년 4월 17일
Hey Ricardo, did you solve the Problem yet?
I have got the same one...
I would be pleasured by an answer.

Felipe Cherfan
Felipe Cherfan 2016년 3월 10일
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.

Edwin Villarreal
Edwin Villarreal 2019년 4월 22일
excellent... thanks a lot

Dominik Huber
Dominik Huber 2020년 3월 30일
Thanks, had the same problem...

Mateo Henao Arenas
Mateo Henao Arenas 2020년 11월 9일
Thank you. It works!!!

samuel E. IGLESIAS DIAZ
samuel E. IGLESIAS DIAZ 2021년 6월 28일
i have this problem, i need to solve this problem
bad lexical cast: source type value could not be interpreted as target

카테고리

Help CenterFile Exchange에서 Physics에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by