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

2 visualizaciones (últimos 30 días)
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 comentario
David
David el 1 de Nov. de 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.

Iniciar sesión para comentar.

Respuestas (1)

Steve Miller
Steve Miller el 6 de Mzo. de 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

Categorías

Más información sobre Assembly en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by