• Login
sketchucation logo sketchucation
  • Login
🤑 SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

Aligning multiple components to sit on one plane

Scheduled Pinned Locked Moved Newbie Forum
sketchup
6 Posts 6 Posters 2.2k 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 25 Jan 2016, 11:15

    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
    • D Offline
      Dave R
      last edited by 25 Jan 2016, 12:42

      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
      • S Offline
        sdmitch
        last edited by 25 Jan 2016, 13:34

        @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
        • B Offline
          Box
          last edited by 25 Jan 2016, 15:21

          Have a look at the 'Throw to' plugin.

          1 Reply Last reply Reply Quote 0
          • P Offline
            pilou
            last edited by 25 Jan 2016, 23:38

            😮 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 1 Aug 2022, 16:44

              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