Simscape multibody in R2022b
이전 댓글 표시
I having some problems when I try to open a Multidody model in R2022b. They are models that work fien in R2021b ond previous but not in R2022b. I get an error when I try to open a stp file. I can open it in R2021b but not in R2022b.
Find attached a simple example. It runs ok in R2021b but when I try to run it in R2022b I get this warning:
['untitled_R2021b/Solid2'] : Frame F1 [Frame1]: The geometric feature the origin is based on, "planar surface 26", does not exist. The geometry may have changed. Resolve this issue in order to remove the warning.
I can't open the FileSolid Cuerpo3.stp. I get this error.
The parameter File Name is an invalid file. Error reading file C:\Users\Vicente\Desktop\Stanford\Cuerpo3.stp.
Any ideas about why this happens?
Best regards
댓글 수: 4
Shree Charan
2023년 6월 1일
편집: Shree Charan
2023년 6월 1일
HI @Vicente Casanova, MATLAB File Solid block supports STEP files of release types AP 203 E1/E2, AP 214, and AP 242. Further CAD drawing and assembly files, which do not contain the necessary data for a solid element, cannot be imported to the block.
You may read about the same at Solid element with properties derived from external file - MATLAB - MathWorks India.
I tried to open the same in MATLAB R2021b and got the same error. 'Cuerpo3.stp' seems to be of an invalid type.
Vicente Casanova
2023년 7월 16일
Vicente Casanova
2023년 7월 17일
Nathan Hardenberg
2023년 7월 17일
Hi Vicente.
Firstly, please comment on the/my according answer next time, if you need clarification. This makes it easier, to later connect the discussion.
Regarding your reply:
- Did my suggestion work for you in this example?
- Do you have a lot of examples of CAD-Assemblies, or lots of already done Simscape models?
Toward your questions in the end. There is a "Simscape Multibody Link" plugin for Inventor, Creo and Solidworks, which creates a Simscape Model from your CAD assembly. With this the joints are already connected the same as in the assembly. I recommend doing this if you have moving parts. If you do not have moving parts I would just connect all bodies and export as one object
답변 (2개)
Nathan Hardenberg
2023년 7월 17일
편집: Nathan Hardenberg
2023년 7월 17일
0 개 추천
I do not know, why this worked for you in R2021b. I did not test it in that version, but it did not seem to work for @Shree Charan in R2021b.
But what is the problem here: The Cuerpo3.stp file does contain two solids. This is most likely not supported.
To fix this open the Cuerpo3.stp file in you CAD software of choice and only export the body that you want to really have. Or combine both/all as one body an export that.
I did that for you and exported the bodies seperatly and one combined (see attachement). Use the appropriate one and the problem should be solved.
EDIT: You also seem to have a geometric Frame (Frame F1) based on a geometric feature. Maybe you have to create this frame again, after changing the file. Not necessarily, but just something to keep in mind.
카테고리
도움말 센터 및 File Exchange에서 Simulation and Analysis에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

