How can I retrieve the names of all the blocks in a sim-mechanics model?
Afficher commentaires plus anciens
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.
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Programmatic Model Editing dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!