フィルターのクリア

Simmechanics load solidworks assembly error

10 ビュー (過去 30 日間)
Toon Mertens
Toon Mertens 2016 年 3 月 29 日
コメント済み: Huynh Huan 2021 年 10 月 2 日
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 件のコメント
sakthinathan s
sakthinathan s 2019 年 10 月 1 日
hello sir,
Try using the command smimport(' .xml') for importing the .xml files
Huynh Huan
Huynh Huan 2021 年 10 月 2 日
Thank you very much, it's working

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

採用された回答

Steve Miller
Steve Miller 2016 年 3 月 30 日
I believe you are using the wrong command for importing the XML file.
Try using the command smimport('smTotal.xml') instead of mech_import().
mech_import() is for First Generation technology. It is likely you exported to Second Generation Technology, and should be using the command smimport().
See doc page for Simscape Multibody here: http://www.mathworks.com/help/physmod/sm/ref/smimport.html
(Note that SimMechanics was renamed to Simscape Multibody in R2016a). --Steve
  5 件のコメント
razieh darini
razieh darini 2018 年 8 月 11 日
thanks for ur hint.I used mech_import yesterday and saw errors that confused me. thanks and thanks!!
Dulanga Chamika
Dulanga Chamika 2020 年 7 月 11 日

It works thanks a lot lot

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

その他の回答 (3 件)

Omar Crypps
Omar Crypps 2016 年 10 月 2 日
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
Diego Leonardo Velásquez Gómez 2018 年 1 月 25 日
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
samet türkay 2019 年 4 月 15 日
eyvallah steve gardaş

カテゴリ

Help Center および File ExchangeSimscape Multibody についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by