Simscape multibody in R2022b
6 views (last 30 days)
Show older comments
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 Comments
Nathan Hardenberg
on 17 Jul 2023
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
Answers (2)
Nathan Hardenberg
on 17 Jul 2023
Edited: Nathan Hardenberg
on 17 Jul 2023
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.
0 Comments
See Also
Categories
Find more on Bodies 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!