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!
    🫛 Lightbeans Update | Metallic and Roughness auto-applied in SketchUp 2025+ Download

    Aligning multiple components to sit on one plane

    Scheduled Pinned Locked Moved Newbie Forum
    sketchup
    6 Posts 6 Posters 2.3k Views 6 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.
    • M Offline
      malanski
      last edited by

      Hello everybody,

      This is my first post on sketchucation.
      I am new to sketchup and I am still struggling with the basics. I have found answers to most of my questions on existing threads but this time I’m stuck. Perhaps it’s a matter of naming the problem properly.

      I want to align multiple components so that they sit on the same level/surface. I know how to do this manually by aligning each object separately using the move tool and locking the direction using the shift key. For aligning a couple of objects this is no problem but what if I were to align tens of objects? The attached picture illustrates the issue.

      I have tried googling phrases such as “Aligning multiple components” or “Aligning components to face” but obtained not satisfying results. Most often I would come across the Align Plugin for SU which seems to be dedicated to aligning two components together.

      Simon

      http://i66.tinypic.com/sztxys.jpg


      Capture3.jpg

      1 Reply Last reply Reply Quote 0
      • Dave RD Offline
        Dave R
        last edited by

        You might try Smart Drop.

        Etaoin Shrdlu

        %

        (THERE'S NO PLACE LIKE)

        G28 X0.0 Y0.0 Z0.0

        M30

        %

        1 Reply Last reply Reply Quote 0
        • sdmitchS Offline
          sdmitch
          last edited by

          @malanski said:

          I want to align multiple components so that they sit on the same level/surface.

          Select the components, open Windows>Ruby Console, paste this one-liner and press enter.

          Sketchup.active_model.selection.grep(Sketchup;;ComponentInstance).each{|ci|
           ci.transform! Geom;;Transformation.translation([0,0,-ci.transformation.origin.z])
          }
          

          This will put all selected components on the XY plane.

          Nothing is worthless, it can always be used as a bad example.

          http://sdmitch.blogspot.com/

          1 Reply Last reply Reply Quote 0
          • BoxB Offline
            Box
            last edited by

            Have a look at the 'Throw to' plugin.

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

              😮 Dave is using a Script? 💚

              Try also this one 😉
              Ray Tracer By Thomthom

              http://sketchucation.com/forums/download/file.php?id=53899&t=1

              http://sketchucation.com/forums/download/file.php?id=53900&t=1

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

              1 Reply Last reply Reply Quote 0
              • D Offline
                djh
                last edited by

                Select the components, open Windows>Ruby Console, paste this one-liner and press enter.

                Sketchup.active_model.selection.grep(Sketchup;;ComponentInstance).each{|ci|
                 ci.transform! Geom;;Transformation.translation([0,0,-ci.transformation.origin.z])
                }
                

                This will put all selected components on the XY plane.[/quote]

                sdmitch, thank you. Just what I needed. Just have to be careful to copy and paste the whole thing, even the last } which is on the bottom line.

                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