Error evaluating parameter 'Mass' , Unable to resolve the name smiData.Solid.
Show older comments
I am getting error when i am, importing assembly from the invent. I am having error at the joints and also the parts imported doesn't import data regarding inertia or geometry. When i run the simulation, I am getting this error
Caused by:
Error evaluating parameter 'Mass' in
Unable to resolve the name smiData.Solid.
Error evaluating parameter 'CenterOfMass' in 'NewTestAssembly
Thank you

Sorry i have to hide few names due to some technical issue
3 Comments
mapping skills
on 27 Aug 2020
Thank you for sharing
Danielle Hendricks
on 16 Oct 2020
I am getting the axact same error when I run my code. Did you manage to resolve this error? Any help would be appreciated!
Alberto Foti
on 18 Nov 2022
still not fixed! If someone knows it'd be really appreciated!!!
Answers (1)
Kristan Hilby
on 9 Nov 2023
Edited: Kristan Hilby
on 9 Nov 2023
3 votes
I was running into the same issue and solved using the following. I am assuming you have already imported from a .xml file and generated a [xml_filename]_DataFile.m that has been saved in your directory (if you have not, run smimport('filename.xml'), where filename is your unique filename). In the matlab command window, you can run
run('filename_DataFile.m')
which will then create a smiData object in your matlab workspace that Simscape can pull from.
As an example, if I have an xml file named robot.xml, I would run
smimport('robot.xml')
in my command window to import the geometry to simscape/simulink. This will automatically generate a file named robot_DataFile.m in my current directory. It will also initialize the smiData object. However, if you are running again or Matlab has lost track of the smiData object, you can run
run('robot_DataFile.m')
to reinitialize the smiData object and you should be good to go from there!
5 Comments
Mohamed
on 7 Dec 2023
sir I do that but anything change can I communicate with you
Kristan Hilby
on 7 Dec 2023
Can you provide information/pictures of your MATLAB workspace, command window (+ all the commands you have run), simulink space after importing the xml file? Do you see a generated *_DataFile.m in your folder?
Nguyen Cong
on 17 Dec 2023
thank you sir
Tanveer
on 23 Oct 2024
Thanks
展阳
on 19 Jan 2025
Thank u sososososososos much sir.
Categories
Find more on Mathematics and Optimization in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!