Error evaluating parameter 'Mass' , Unable to resolve the name smiData.Solid.

조회 수: 10 (최근 30일)
RONSON RAJAN
RONSON RAJAN 2020년 8월 27일
댓글: 展阳 2025년 1월 19일
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
Danielle Hendricks
Danielle Hendricks 2020년 10월 16일
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
Alberto Foti 2022년 11월 18일
still not fixed! If someone knows it'd be really appreciated!!!

댓글을 달려면 로그인하십시오.

답변 (1개)

Kristan Hilby
Kristan Hilby 2023년 11월 9일
편집: Kristan Hilby 2023년 11월 9일
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
展阳
展阳 2025년 1월 19일
Thank u sososososososos much sir.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Spreadsheets에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by