Explode groups
-
Hi SketchUPers

I am looking for a plugin that can explode groups inside groups.
For example: I am want to expload all groups (A,B,C) inside groups X1,X2,X3,...


-
Did you try searching the Plugin Store? TIG's Group Exploder would probably do what you need.
-
Thank you Dave R! But this plugin explodes all the groups... and I want to explode only groups A,B,C and keep X1, X2, ...
-
To explode all groups found inside another group, but ignore those groups located in the model itself or inside components, you can use this one-liner copy+pasted in the Ruby Console + enter...
m=Sketchup.active_model;m.start_operation('ex',true);m.definitions.find_all{|d|d.group?}.each{|g|next unless g.valid?;g.entities.grep(Sketchup;;Group).each{|e|e.explode}};m.commit_operation -
Woow TIG, it is working perfect!
Thank You Very Much!
It is hard to explode Components also? -
@koliboti said:
Woow TIG, it is working perfect!
Thank You Very Much!
It is hard to explode Components also?
No.
If you want to ALSO explode components you could make this adjustment ??m=Sketchup.active_model;m.start_operation('ex',true);m.definitions.find_all{|d|d.group?}.each{|g|next unless g.valid?;(g.entities.grep(Sketchup;;Group)+(g.entities.grep(Sketchup;;ComponentInstance)).each{|e|e.explode}};m.commit_operation -
Thank You Very Much TIG!

Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better π
Register LoginAdvertisement