Is there a command to drop objects bases down to C plane en masse?

Hi,
V5 (inc layer bug)
Is there a command I can apply to a number of solids to drop them down to have their bases touch Cplane.
I want to break down my model into separate parts and sit them all on the same base plane for 3D printing, minimising the Z height for the build.

Rather than have to select each base and move it down to z 0 i.e. Cplane, something I could run, to do all in one go ?
Ideally also to separate them out from each other by an indicated amount.

Just would save me some time doing it one at a time.

Otherwise, selecting a point on the base, how do I tell it to take that point to the Cplane that will be the build base for 3D printing. Move command obviously but then what entry to make ?

Steve

1 Like

In base Rhino, you can use the Align>Bottom command in Front view and then snap to something on the Z0 plane.

Or you can use a script such as one of the the ones below.

ā€“Mitch

AlignBottomToZero.rvb (559 Bytes)

AlignBottomToZero.py (401 Bytes)

2 Likes

Hi Mitch,
Align Bottom does nicely :smile:
Iā€™ll also try the codes.

Steve

Hi Mitch,
I try to download your AlignBottomToZero.py Is this a private definition?
Tankā€™s in advance.
Best regards!
Bernhard

Hi @bermu,

You can do this in Rhino without a script: Select the objects, open the Boxedit panel, choose the World or Current cplane as appropriate, select the Z ā€œMinā€ and ā€œTransform objects individuallyā€ options and set the Position Z value to zero.

Regards
Jeremy

3 Likes

No, not at all, but there is something wrong with Discourse, the links above seem to be invalid. I am posting it again below:

AlignBottomToZero.py (401 Bytes)

1 Like

Thankā€™s a lot! Mitch

Hello Helvetosaur,
I just came across this thread and although the align bottom to zero tool is useful, is there an equivelant script to align the top of objects to zero? Or can you help me to modify the AlignBottomToZero.py file?

Thanks

Hello - you can always use the Align command in a ā€˜sideā€™ view and CPlane.

-Pascal

This is currently what I do, or in some cases ā€˜move betweenā€™ā€¦

I was just looking to speed up the workflow by creating buttons with the align to top and align to bottom scripts.

Unfortunately I havenā€™t a clue what Iā€™m looking at when opening the script to make the changes from the bottom of the object to the top. lol

Here is a macro that might do it:
Cplane rotate X 90 Plan CPlane View Align pause Top 0 UndoView UndoView CPlane Undo CPlane Undo

-Pascal

thanks, Iā€™ll give it a try

This should do it:

AlignTopToZero.py (367 Bytes)

2 Likes

Thanks a bunch - lifesaver

Just came across this thread and this answer by @jeremy5. Does this work for objects with different Z values? When I select multiple objects that have different Z values, there is now only the option for a Z delta.

I donā€™t understand why it shouldnā€™t be possible to set a new value for Z for each object individually. I love the Box Edit toolbar and use it a lot, but I never understood this limitation.

The normal pattern for something like this would be that for Z it displays ā€œvariesā€ and when I enter a value they all get that value. Using a delta should be a separate option.

No longer. It works in Rhino 5 but not in 6, 7 or 8. IIRC boxedit went through some traumatic rewrites in 6 and this was a casualty. I thought the functionality was reinstated but seemingly not.

As Pascal points out in the thread, Align | Bottom is a viable alternative.

You can also open the Align toolbar, and open the Help Panel to learn how to use it. I use this toolbar enough that Iā€™m surprised the button icons arenā€™t faded.

Thatā€™s a real shame. I love the Box Edit panel. I actually have it open all the time and donā€™t think of it as an ā€œEditā€ panel. To me it should just be part of the properties panel of an object.

Align bottom indeed works okay, but I just noticed a bug: I have many objects in the scene; curves, surfaces and text objects. I select everything in the front view and select Align and then bottom. I noticed the text objects didnā€™t move and it appears that text objects donā€™t get selected in side view. In perspective and top view I can select them, but in the side view they donā€™t get selected. 99% sure that is a bug and not a feature, although with Rhino there is always some residual chance something weird is actually intended behavior.

rhino-select-text-bug

Since we donā€™t have an Object Manager and selecting in the viewport is the only way, I feel like at least selecting stuff in the viewport should be flawless :wink:

This is in Rhino 8.6.24101.5001

Hi Armin -

Iā€™d say thatā€™s somewhat expected since itā€™s not visible in that viewport. Itā€™s not consistent with selecting lines that are not visible in a certain viewport, though, so Iā€™ve put this on the list as RH-82308 Selection: Window-select doesnā€™t include annotations in different Cplane
ā€¦ Itā€™s been like this since at least Rhino 5, though, so changing this at this point will possibly have other users react furiouslyā€¦
-wim