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 CenterFile Exchange에서 Assembly에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by