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!
    πŸ›£οΈ Road Profile Builder | Generate roads, curbs and pavements easily Download

    Multiple Selection-->Multiples Components by TIG

    Scheduled Pinned Locked Moved Plugins
    8 Posts 4 Posters 1.1k Views 4 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.
    • pilouP Offline
      pilou
      last edited by pilou

      By TIG πŸ‘
      Just select any common multiple objects
      (except from existing groups or Components)
      Copy past this code in the ruby console
      And you will obtain multiple Components β˜€
      So cool no? 😎
      (Click on the blue "Select all"
      for copy all the code

      m=Sketchup.active_model;m.start_operation("Faces>Compos");n=m.active_entities;m.selection.to_a.each{|e|(g=n.add_group(e.all_connected);g.to_component.definition.name="FaceSet#1")if e.valid? and e.parent==n.parent and e.class==Sketchup;;Face};m.commit_operation
      

      tigcomponent.jpg

      Frenchy Pilou
      Is beautiful that please without concept!
      My Little site :)

      1 Reply Last reply Reply Quote 0
      • thomthomT Offline
        thomthom
        last edited by

        Is this the same as Chris' "Loose Geometry to Groups" plugin? http://forums.sketchucation.com/viewtopic.php?t=16154

        Thomas Thomassen β€” SketchUp Monkey & Coding addict
        List of my plugins and link to the CookieWare fund

        1 Reply Last reply Reply Quote 0
        • Chris FullmerC Offline
          Chris Fullmer
          last edited by

          Yup. But mine is built into the menu system, so it adds a line in the menu. And mine changes to groups, not components. So there are some subtle differences.

          Lately you've been tan, suspicious for the winter.
          All my Plugins I've written

          1 Reply Last reply Reply Quote 0
          • pilouP Offline
            pilou
            last edited by

            Indeed, but it's a "big" subtle in the result πŸ˜„

            Frenchy Pilou
            Is beautiful that please without concept!
            My Little site :)

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

              This was just a "one-liner" bit of code I wrote for Pilou... use it as you wish...

              TIG

              1 Reply Last reply Reply Quote 0
              • pilouP Offline
                pilou
                last edited by

                Variant
                Always by TIG make all faces components! (except from existing groups or Components)

                m=Sketchup.active_model;n=m.active_entities;m.selection.to_a.each{|e|(g=n.add_group(e);g.to_component.definition.name="Face#1")if e.class==Sketchup;;Face}
                

                Here the different versions above πŸ˜‰
                Loose2Groups by Chris Fullmer,
                and the 2 versions by TIG
                variant.jpg

                Frenchy Pilou
                Is beautiful that please without concept!
                My Little site :)

                1 Reply Last reply Reply Quote 0
                • pilouP Offline
                  pilou
                  last edited by

                  For be exaustiv πŸ˜‰
                  always by TIG

                  @unknownuser said:

                  m=Sketchup.active_model;
                  n=m.active_entities;
                  m.selection.to_a.each{|e|n.add_group(e)if e.class==Sketchup::Face}

                  Make All selection groups (all faces)
                  (except from Existing groups or components)
                  Loose2Groups by Chris Fullmer, for Groups
                  TIG on the right πŸ˜„
                  variant1.jpg

                  Frenchy Pilou
                  Is beautiful that please without concept!
                  My Little site :)

                  1 Reply Last reply Reply Quote 0
                  • pilouP Offline
                    pilou
                    last edited by

                    Can be useful for things like this πŸ˜„

                    http://forums.sketchucation.com/download/file.php?id=58372

                    Explosion =Radial Move by C.Plassais Fredo6/ Pilou πŸ˜‰

                    Frenchy Pilou
                    Is beautiful that please without concept!
                    My Little site :)

                    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