[REQ] Convert ALL components to groups?
- 
 @jackson said: Matt, I get an error message on opening SU after copying in your .rb 
 [attachment=0:3hbnrx9w]<!-- ia0 -->C2G Ruby Error.jpg<!-- ia0 -->[/attachment:3hbnrx9w]I ran the other .rb I received- it definitely works, exploding all top level comps and regrouping them, but I had to delete and purge 90% of the model as I think it would take about an hour of SU hanging before that model was fully converted. Would been a perfect task to have left running at lunchtime though! Thanks again, I get the exact same error. any solution? 
- 
 Hi rfn, 
 You just have to add this line at the beginning of the script :require 'sketchup.rb' 
 I will update the script... thank you !
- 
 Hello. here is a test which converts components to groups. 
 Not really tested... EDIT : See last version below 
- 
 With SU 2017 if I select a few components script convert only one random from selection... 
 How can I modify it to convert every selected components to groups?
- 
 10 Years later... this script almost does exactly what I need, but as Antiever pointed out it just does one from a selection. Anyone know how to fix this behaviour? 
- 
 @paguthrie said: 10 Years later... this script almost does exactly what I need, but as Antiever pointed out it just does one from a selection. Anyone know how to fix this behaviour? Hopefully Matt666 wont mind me editing his plugin. Tested in SU2017 in model with and without selections. 
 
Advertisement

 
                             
                             
                             
                             
                             
                             
                            