Good Afternoon All
I found the script below which is working fine for the first 1,000 surfaces to groups. After that it is slowing selection each further selection. The add_group function seem to be the issue. After the script slowed down, I tried to add a group to a surface manually and that also works slow now
I have searched the Internet extensively to find a solution but no luck. Is any expert able to help me ?
The surfaces are in various layers, the script is run in every layer individually
I have tried the following;
• Window- Model Info - Statistic - Purge unused frequently
• save and restart (in case the Undo function is slowing it down)
#
model = Sketchup.active_model
active = m.active_entities
model.start_operation('face2group',true)
c = 0
model.selection.grep(Sketchup::Face).each{|f|active.add_group(f)
c+=1}
m.commit_operation;puts "Made #{c} face groups"