ℹ️ GoFundMe | Our friend Gus Robatto needs some help in a challenging time Learn More
How to get nested attributes?
-
I have a dynamic component that has many layers of nested components. After I select the most parent component I'm trying to write a script that will work through the levels and get the attributes of the nested components. I can't figure out how to reference to the nested ENTITY's from the selected ENTITY.
-
Instances do not have their own entities - it uses the entities of its definition, so..
ins = Sketchup.active_model.selection[0] entities = ins.definition.entities
will give you the entities collection for the instance.
Advertisement