How to align two objects

Grid snap also helps with aligning objects. I do it all the time. :slight_smile:

It would not help here. Attempting to use grid snap here would lead to bad results.

OK, try this:

  1. Draw your wall. Adjust its orientation to match the point cloud wall.
  2. Turn on GumballAutoReset if not already on.
  3. In the perspective viewport set the CPlane to Object, using the front face of the wall as the object.
  4. In that viewport draw your aircon boxes. You are now drawing in the orientation of the wall, not the WCS, so everything you draw will be in the same orientation as the wall with no need to reorient. If you move or scale with the gumball you are doing so in the orientation of the wall.
  5. If you need to adjust the box because you have drawn it off the wall, say, you can just use move, pick a corner of the aircon, then use POnSurf for the destination to plonk it on the wall.
  6. When done set the CPlane back to World Top.

It’s a different way of thinking, and that’s often a big problem when you move from one software package to another. In Revit you were aligning objects after drawing. In Rhino we are reorienting the drawing surface and drawing directly.

HTH
Jeremy

Can you give an example of what bad would happen by using a grid snap?

Align the green box to the cyan wall with A matching A. The cyan wall cannot be moved. AlignGridSnap.3dm (1.6 MB) Without creating several Cplanes I do not see how the objects can be aligned using grid snaps.

@davidcockey

Thank you. That truly sped up the process.

@Rhino_Bulgaria Thank you for your post. That actually solves one of my ailments which I had in both Revit and Rhino. I always wanted some kind of “limiter” to keep dimensions “clean”. After all, I am more willing to make a 7x14 cm beam rather than 7,8x14,2 cm.

@jeremy5 Thank you for another one of your posts and your patience. :slight_smile: [quote=“jeremy5, post:23, topic:121132”]

  • Draw your wall. Adjust its orientation to match the point cloud wall.
  • Turn on GumballAutoReset if not already on.
  • In the perspective viewport set the CPlane to Object, using the front face of the wall as the object.
  • In that viewport draw your aircon boxes. You are now drawing in the orientation of the wall, not the WCS, so everything you draw will be in the same orientation as the wall with no need to reorient. If you move or scale with the gumball you are doing so in the orientation of the wall.
  • If you need to adjust the box because you have drawn it off the wall, say, you can just use move, pick a corner of the aircon, then use POnSurf for the destination to plonk it on the wall.
  • When done set the CPlane back to World Top.
    [/quote]

I followed your advice and it looks good. Unfortunately, I cannot use top and section views. I extended one surface and it is not following the wall:

I guess that I should work in only 3D view but that way we sacrifice the precision brought by thick slices of the section views.

Your example does not show how using Grid snap makes bad results. :slight_smile: In fact, aligning reinforcement steel members (a.k.a. triangulation) along the length of a bridge involves multiple same objects placed at certain distance to each other. This means that once you align one of these, you can easily use Grid snap to mirror it along the Z-axis, then use Grid snap to make multiple copies of the original pair wherever you want. For this to work I would orient the point cloud to be parallel to the world axes, or build a CPlane along the length of the bridge. This is where Grid snap shines best.

Could you copy a section of the point cloud containing some of the wall and the aircon units and post it here?

Yes, with pleasure.

Part_of_the_point_cloud.e57 (19.2 MB)

I tried that with @pasal and thanks to his help (and patience) I found out about the problem I mentioned before: setting the CPlane in one view does not affect the rest of the views so my beams were mispleaced.

That is impossible. The model must be in the same coordinate system as the cloud. Besides, If I align one wall with the world axis, the other wall will be shifted.

That is a good method for creating a new design or creating a model of an object as the modeler consider should be. But that is not what S Urbanski is doing. Instead he is creating an “as is” model to document the objects as the exist, which may or may not correspond exactly to a recatlinear grid with uniform spacing.

The Universal construction plane option results in the the Cplanes in all views being updated to remain orthogonal when the Cplane in one view is changed,
Options or DocumentProperties > Rhino Options > Modeling Aids > Construction planes

You can make what you want with a python script, getting normal from each component and orienting one to other. This is concentric constraint and is almost the same for mating faces.

5 Likes

This is why my sentence ended with:
“For this to work I would orient the point cloud to be parallel to the world axes, or build a CPlane along the length of the bridge.” :smiley:
You can build and save as many CPlanes as you want, and can switch between them quickly according to your need.

I use “Large objects millimeters” to design cars or buildings, and my grid is divided every millimeter. It’s more than enough to use the Grid snap to build a large bridge this way. Even if the system units in Rhino are set to meters or any other type of unit, the grid could be customized to be divided in the desired size. For example, two structural members of the bridge could be 7084 mm away from each other using Grid snap as a “limiter” to stick to whole numbers. This is a much better approach than turning off the grid snap and place the next structural member of the bridge at some totally random distance such like 7083,951572 mm (especially if the third one is also at a random distance like 7086,209371 mm). :crazy_face: Having to work with whole numbers give the user a lot more control over the position of the objects in the scene.

Can you share that script or put a link to a place where you got it from? Reminds me of the “Driving dimensions” plug-in for Rhino 5.

2 Likes

Unfortunately, this option negatively affects also section views:

Before setting CPlane to the wall:

And after:

@geopalacios_88 Indeed, that looks like something I need. Is it some paid plugin?

@Rhino_Bulgaria I deliberately quoted the part about point cloud(which cannot be moved) but left the second part. Definitely worth trying but I fear that with bigger projects, with multiple construction planes, finding the right one may be tricky.

I thought that grid snap works in a different way but, as I said before, this is a nice surprise.

In general, Grid snap also forces the Gumball to move in steps depending on your grid settings. The “Move” tool also benefits from that.

As for the Cplanes, there is no problem to use hundreds of them. Finding the needed Cplane inside the long list of saved Cplanes is easy if you name each one of them accordingly. I have been using gazzilion amount of CPlanes for this project. There is even a command that you can use to directly click on the saved Cplane’s XYZ coloured icon in the 3d viewport, if that will be easier for you: _-NamedCplane _Select

1 Like

Is this possible to buy it somewhere?

1 Like

All we are looking for is a Rhino script called “carrot.py”, as seen in the videos above. :smiley:

the hunt is on!

man, @geopalacios_88 should sell it on gumroad. i’d drop some cash down for it!

1 Like