zPackObjects brings the selected objects down to Z = 0 and packs their footprints in two dimensions inside a rectangle you pick. It can also straighten the objects and flip them over automatically.
Quick start
Run zPackObjects.
Select the objects to pack.
Click two points on the world XY plane to draw a rectangle as the boundary. This step is required.
Type a clearance (a bare number is in the document unit) and press Enter. The packed result is drawn live while your objects stay where they are; the boundary turns red if something does not fit.
Press Enter on the empty prompt to move the objects to the packed result. Esc leaves them untouched.
Options
Clearance: the minimum gap between neighboring objects (default 6 in, or 150 mm in a metric document).
Algorithm: Skyline or MaxRects (default).
Skyline: keeps a horizontal outline and each time picks the position where the piece fits and the resulting height is lowest.
MaxRects: keeps the full set of maximal free rectangles and picks the placement that wastes the least area. It usually packs tighter than Skyline.
AutoStraighten (Yes by default): aligns the longest edge to the X axis before packing (the same algorithm as zStraighten).
AutoFlip (Yes by default): decides automatically which side is larger and turns the larger face down.
Boundary: draw the rectangle again.
How the settings work together
AutoStraighten runs before AutoFlip, and it uses the true tight bounding box of the rotated geometry (not the corners of the bounding box from before the rotation) to work out the footprint, so the area is not overstated.
Input requirements
You must select the objects first and then draw the boundary rectangle by hand (the Boundary option redraws it). Canceling the rectangle cancels the whole command.
Good to know
A boundary that is too small does not give an error. Some objects overflow the boundary, and the boundary line turns red to warn you. The tool always tries to place every object, and never refuses or clips anything for lack of space. A red boundary means it cannot hold all the objects, so make it larger by hand.
When even a wide boundary cannot hold everything, the remaining objects are stacked outside the left side of the boundary. This is handled as a fallback and does not fail.