sketchucation logo sketchucation
    • Login
    Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
    ⚠️ Important | Libfredo 15.6b introduces important bugfixes for Fredo's Extensions Update

    Automagically group faces?

    Scheduled Pinned Locked Moved SketchUp Discussions
    sketchup
    4 Posts 3 Posters 208 Views 3 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • E Offline
      ericschimel
      last edited by

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

      -Eric
      http://plugin.sketchthis.net
      Sketchup Kitchen Design Plugin
      Custom Models

      1 Reply Last reply Reply Quote 0
      • TIGT Offline
        TIG Moderator
        last edited by

        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
        

        πŸ€“

        TIG

        1 Reply Last reply Reply Quote 0
        • Rich O BrienR Offline
          Rich O Brien Moderator
          last edited by

          http://forums.sketchucation.com/viewtopic.php?t=31892

          I haven't used it but it seems to do what you want.

          Download the free D'oh Book for SketchUp πŸ“–

          1 Reply Last reply Reply Quote 0
          • E Offline
            ericschimel
            last edited by

            That worked brilliantly! Thanks so much!!

            -Eric
            http://plugin.sketchthis.net
            Sketchup Kitchen Design Plugin
            Custom Models

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            • First post
              Last post
            Buy SketchPlus
            Buy SUbD
            Buy WrapR
            Buy eBook
            Buy Modelur
            Buy Vertex Tools
            Buy SketchCuisine
            Buy FormFonts

            Advertisement