Problem with importing an xml into SimMechanics using the smimport() command.

2 ビュー (過去 30 日間)
Michael
Michael 2013 年 5 月 23 日
回答済み: Steve Miller 2018 年 3 月 6 日
I've been trying to import an Inventor assembly into SimMechanic and keep getting the following error.
>> smimport('WRIST_CONSTFIX.xml') Error using smimport_implementation (line 38) Invalid MATLAB identifier: mill_max_P826_22_010_00_001000_6875_0_00_00_75_XX_43_0C_6875_0_1.
Error in smimport (line 51) hModel = smimport_implementation(xmlFile, varargin{:});
In Inventor, I exported using "Export SimMechanics Second Generation..." with no errors. The export of the assembly ended with a message indicating the export was successful and the path to which the xml was saved.
Next, in Matlab, I pointed Matlab to the folder that contained the xml and entered the smimport('WRIST_CONSTFIX.xml') command which resulted in the preceeding error message. I've tried multiple times with no success.
I've verified that I can import an Inventor assembly by working through the "Import Robot Arm Model" on the Matlab website. I was able to open this assembly in Inventor, execute an export, and open the xml in SimMechanics.
What do you suggest I try?
Thanks in advance,
Mike
  1 件のコメント
David
David 2013 年 11 月 1 日
Fastest way to an answer is call tech support or enter a service request. If you already know you've got SimMechanics Link working with Inventor, it might just be a unique combination of interactions that don't work well, i.e. a bug.

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

回答 (1 件)

Steve Miller
Steve Miller 2018 年 3 月 6 日
Without the model or the exported results, it is hard to know what the answer is. Feel free to post the models or contact technical support.
As stated above, the fastest way to an answer is call tech support or enter a service request. If you already know you've got Simscape Multibody Link working with Inventor, it might just be a unique combination of interactions that we would like to add to our test suite.
--Steve

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by