How can I retrieve the names of all the blocks in a sim-mechanics model?
Show older comments
I would like to list down all the names of bodies in a simmechanics model. Basically the purpose is to get the names of the block automatically and see if that type of block (component) exists in my database. For example, in a gear assembly, there are several components, for instance, gear1 (driver), gear 2 (driven), revolute and so on. Gear 1 and gear 2 belongs to "gear" category in my database. Now the database will give me corresponding parameters, which needs to be extracted for that particular category. So, for gear category, I need radius of both gears and so on. Is it possible to do such thing? I know how to use get_param, but for this I need to write the name of the block manually. Please help!
Thanks.
Accepted Answer
More Answers (0)
Categories
Find more on Modeling 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!