How to get a model Nested Component(group) tree Information

I want to get a model Nested Component(group) tree Information by ruby api. can I do it by ruby api ? and how do it ? i need some helps.

From a selected element, you can get the definition of a component instance, and then get that component’s entities. You can then enumerate that to find child components.

-Nick

See here for how to traverse a nested model.

For each entity, you can then get the information that you need (name or attributes or area etc.). Maybe you need to check the entity type (with is_a?) because not all entities have the same methods and properties. For some you need to take the transformation into consideration (e.g. area).

2 Likes

Oh, your suggests is really useful. Thank You. :+1::grinning: