Automagically group faces?
-
So I have a specific need... I have an imported CAD drawing that is just lines, no faces. I used the MakeFaces plugin to search the model and make faces out of all my closed geometry and it worked great. Now, I want to automatically make a group from each face without having to do it manually, does anyone know of a plugin that could do this? I search around and didn't see anything....
-
Select all of the faces that you want to become groups [you don't need to be too careful as any edges etc will be ignored anyway]
Copy&Paste this one-liner into the Ruby Console + <enter>n='Face#1';m=Sketchup.active_model;s=m.selection;s.to_a.each{|e|next if e.class!=Sketchup;;Face;g=m.active_entities.add_group(e);g.name=n;n.next!};s.clear
-
http://forums.sketchucation.com/viewtopic.php?t=31892
I haven't used it but it seems to do what you want.
-
That worked brilliantly! Thanks so much!!
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