Aligning - How?

I need to align objects with complex shapes so that a point/curve/edge/surface on the object which is not on the bounding box have a selected x, y or z value. The Align does not appear to be able to do this.

How can this be done simply, preferably with multiple objects?

Example file: Alignment Example DC01.3dm (16.1 MB)

ExtractIsocurve with SetPt and Move maybe?

Hi @davidcockey ,

I usually get there by turning on Project and moving stuff in an ortho viewport (in your case Right) using various object snaps and ortho on… But, I think I might also be able to modify one of my scripts to move objects from a picked point to an alignment value or a pick point but only in X, Y or Z.

Obviously, as Rhino does not have feature detection, it will be impossible to align a certain “feature” of multiple objects to some other “feature” of a target object…

That is what I need, not something involving “feature detection”.

Sorry, took me awhile - here is something to try:

AlignP2PAlongAxis.py (3.3 KB)

If objects are not preselected, there will be an axis choice (world X, Y, or Z) at the command line (sticky within the same session). If objects are preselected it will use the last used axis (default is X in a new session). Selected objects are aligned along the chosen axis from a picked reference point to either a picked target point or a keyed-in value (in absolute coordinates).

Let me know if this is something useful for you in its current form or if it needs to be tuned up…

I guess it’s also possible to separate this into three separate scripts with the axis hard-coded, if one wanted to make a set of specific axis alignment buttons or aliases.

Thanks. I’ll try it.

David

i am not sure i understood the request, but the one shot from might help either. when you activate the move command then go to one shot from select a base point then enter the distance and mark the direction you want it to set then move to the reference end point. it will have the distance you selected. that would have to be done with each object, so it might not beat a script. if that is unrelated i apologise, i read through the description a few times and wonder how everybody picked up what its about, i feel dumb :smile: