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

9 views (last 30 days)
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 Comment
David
David on 1 Nov 2013
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.

Sign in to comment.

Answers (1)

Steve Miller
Steve Miller on 6 Mar 2018
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

Tags

Community Treasure Hunt

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

Start Hunting!