Align faces of polysurfaces that are at different heights

Hey all I’m sure there’s a quick fix to this:

Currently, I have several boxes that all have the same base point but are different heights. I want to align the top faces to a specific line whilst keeping the bases the same. Of course, I could use MoveFace above the line and then trim and cap them but is there a command that will align just the tops at once?

Cheers everyone

I’m assuming you have simple boxes.

Select the boxes.
Select the solid points on the tops of the boxes
Uncheck/check so that only option “Set Z” is selected.
Move the selected solid points to the desired height, or enter the desired height.

You can also sub-object select all the top faces and do the same with SetPt.

Thanks David and Helvetosaur both worked a treat! Legends