Explode groups  Topic is solved

General discussion related to SketchUp Pro and Make

Explode groups

Postby koliboti » Fri Nov 10, 2017 7:30 am

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,...
0

koliboti 
 

Re: Explode groups

Postby Dave R » Fri Nov 10, 2017 2:50 pm

Did you try searching the Plugin Store? TIG's Group Exploder would probably do what you need.
0
Inspecting mirrors is a job I could easily see myself doing.

If you are the smartest person in the room, you are in the wrong room.
User avatar
Dave R 
Global Moderator
 

Re: Explode groups

Postby koliboti » Mon Nov 13, 2017 7:58 am

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, ...
0

koliboti 
 

Re: Explode groups

Postby TIG » Mon Nov 13, 2017 1:00 pm

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...
Code: Select all
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
3
TIG
User avatar
TIG 
Global Moderator
 

Re: Explode groups

Postby koliboti » Mon Nov 13, 2017 8:06 pm

Woow TIG, it is working perfect! :) Thank You Very Much!
It is hard to explode Components also?
0

koliboti 
 

Re: Explode groups  Topic is solved

Postby TIG » Mon Nov 13, 2017 9:05 pm

koliboti wrote: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 ??
Code: Select all
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
0
TIG
User avatar
TIG 
Global Moderator
 

Re: Explode groups

Postby koliboti » Tue Nov 14, 2017 6:07 pm

Thank You Very Much TIG! :)
0

koliboti 
 

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago



Ad Machine 
Robot
 



 

Return to SketchUp Pro & Make Discussions

Who is online

Users browsing this forum: No registered users and 10 guests

Visit our sponsors: