SimMechanics Import fails with original examples

16 ビュー (過去 30 日間)
Ricardo
Ricardo 2015 年 2 月 13 日
移動済み: Walter Roberson 2024 年 10 月 23 日
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 件のコメント
Josef Liebhart
Josef Liebhart 2015 年 4 月 17 日
移動済み: Walter Roberson 2024 年 10 月 23 日
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 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.

サインインしてコメントする。

回答 (1 件)

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.
  10 件のコメント
Mateo Henao Arenas
Mateo Henao Arenas 2020 年 11 月 9 日
移動済み: Walter Roberson 2024 年 10 月 23 日
Thank you. It works!!!
samuel E. IGLESIAS DIAZ
samuel E. IGLESIAS DIAZ 2021 年 6 月 28 日
移動済み: Walter Roberson 2024 年 10 月 23 日
i have this problem, i need to solve this problem
bad lexical cast: source type value could not be interpreted as target

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeIntroduction to Installation and Licensing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by