Hello
I’m attempting to rely all teams and used part relying of the layer they’ve.
For exemple, I wish to know what number of “door” taged group and part i’ve and i would like it to rely for every definitions.
Eg. :
5 part White door
2 part Entrance door
1 group Again door
I attempted various things. I’m capable of get the nb of part used with definition.count_used_instances
however i’m not capable of rely used occasion if tagged
I’m capable of rely tagged occasion, entity.is_a?(Sketchup::ComponentInstance) #&& entity.layer.title == "Door"
However it additionally rely doorways that are in not used part …
I’m king of caught
Hello,
With this code, I’m capable of listing parts of my energetic entities
mannequin = Sketchup.active_model
entities = mannequin.active_entities
entities.every{ |entity|
if entity.is_a? Sketchup::ComponentInstance
places "sure it's (#{entity.definition.title}) (#{entity.title}) (#{entity.layer.title}) "
finish}
However to not listing part in nested entites, and that’s sort of my purpose