Ze Meng
← ZTools

Architecture

zDoor

Parametric door that cuts its own opening

zDoor builds a door frame and door leaf on an existing wall face. It is modeled on zWindow but much simpler. You pick a wall face, place the door along the wall, and then adjust the width, height, frame, leaf thickness, swing, glass and handle in a floating dialog with a live preview and a drawing of the door. When you are happy, Bake creates it.

Differences from zWindow:

  • zWindow needs a closed curve drawn on the wall for the opening. zDoor does not. The rectangular opening is made from the width and height at the point you place it.
  • zDoor cuts the door opening in the host wall automatically on Bake (a Boolean difference), so you do not have to cut the wall with Rhino’s own tools. zWindow previews with the wall hidden and cuts it only on Bake, with its own wall-cutting rules (see its manual).

Quick start

  1. Run zDoor.
  2. Pick a wall face (a face of a surface, Brep or extrusion; use Ctrl+Shift+click to pick a single face of a multi-face Brep).
  3. Move the cursor over the wall. A ghost of the door follows it, standing on the bottom edge of the face. It snaps to the center and to either wall end (a label says which). Click to place it. The position pick shows no distances and takes no numbers: the exact gaps to the wall ends are set in the next step.
  4. The floating dialog opens. The real wall is hidden automatically; a copy of it is drawn in the preview with the door opening already cut, and the door previews at your point. The ELEVATION drawing sits on top, the settings below it on four tabs: DOOR, FRAME, GLASS and HANDLE.
  5. Adjust the size and the opening on DOOR, the sidelight, transom and frame on FRAME, the glass insert on GLASS and the handle on HANDLE. The viewport and the drawing update live.
  6. Bake cuts the door opening in the wall (a Boolean difference, with the size of the whole opening including the frame area), creates the Frame, Leaf, Glass and Handle geometry and groups it. Cancel restores the wall as it was and leaves no door and no cut. If there is no door to build (for example the wall was deleted, or the picked face is horizontal or curved), Bake keeps the window open and the warning card beside it shows a red “Nothing to bake” line with the reason in plain words, such as “The wall face is curved: pick a flat wall”.
  7. To change a baked door, run zDoorEdit and select any part of it. The same dialog opens with the saved settings, and Bake replaces the old geometry (keeping the same stable ID).

You can also start the tool from a preset in the Architecture tab of zAssetLibrary: the same picks run, and the window opens filled with the preset.

ELEVATION

A drawing of the door seen from the front, with its sizes. The card title shows the overall size of what is drawn (door, sidelights and transom). The line under the drawing tells you what you can do on the open tab:

  • On every tab, double-click a number in the drawing to type it.
  • FRAME: drag an edge of the door outward to add a sidelight or a transom (drag it back to zero to remove it again), and click a frame bar to take it out or put it back. The outer frame and the frame around the door itself always stay.
  • GLASS: drag an edge of the glass to change its inset.

On the FRAME tab a Global / Detail toggle sits at the right end of the card title. Detail shows one frame jamb cut across, next to the leaf, at true scale, with the frame Width, frame Depth and leaf Thickness. Double-click a number there to type it.

DOOR

  • Lengths follow the Rhino document unit: a bare number means the document unit, and a unit typed after it always works. Values are converted to the document units on bake.
  • Type: how the door opens.
    • Single: one leaf, hinged on the left.
    • Double: two equal leaves, each Width / 2, with no center post. Each leaf is hinged on its own outer jamb. Switching to Double sets Width to 60 in.
  • Height: the opening height, measured up from the base point. A height under 80 in is flagged beside the Width x Height row and on the building code card (ADA 404.2.1).
  • Width: the total opening width. For Double, each leaf is Width / 2. A clear width under 32 in (the leaf less about 2 in for hinge and thickness; per leaf for a double door) is flagged the same way (ADA 404.2.3).
  • Thickness: the thickness of the door leaf (a solid slab) along the wall normal.

OPERATION

  • Swing and IN / OUT: both are buttons in the viewport, not rows of the window. A red band marks the OUT side of the wall, with an OUT label and a flip button beside it; click the flip button to build the door from the face on the other side of the wall (a wall with no flat back face keeps it as it is, and the window says so). The swing arc is drawn flat in plan with a button on it; click it to swing the door In or Out. After a flip the Swing keeps its meaning: In stays toward the inside of the building. The arc has two handles: drag the round handle at the tip of the open leaf to set Open Amount (steps of 5, 100 is a quarter turn) and, by crossing the wall line, the swing side; for a single door, drag the small dot at the hinge to the other half of the opening (or click it) to move the hinge to the other jamb. The leaf turns on its hinge while you drag, and it no longer sweeps into the jamb. The arc is drawn on the side the leaf really opens to.
  • Open Amount: only for the preview and renders, shown in %. It sets the angle of the leaf around the hinge (0% = closed, 100% = 90 degrees). It does not change the baked geometry, which is always modeled closed.

FRAME

The first card holds the fixed glass beside and above the door. Each section has its own on/off switch on its heading. When a switch is off, its values stay visible but grayed out.

SIDELIGHT

When on, adds fixed glass side windows next to the door.

  • Side: Left, Right or Both (default Left). There is no “None”, because the switch itself means none.
  • Width: the width of the sidelight panel, measured outward from the door’s own jamb. With Side = Both the row becomes Left Width and a Right Width row is added, so the two sides can differ.

TRANSOM

When on, adds a fixed frame and glass strip above the door head, covering the whole opening width (including any sidelight).

  • Height: the height of the transom panel, measured up from the door head.

Above a sidelight, the transom by default runs as one pane with the transom over the door (no mullion over the door jamb). In the drawing, click the bar position over the jamb to put that mullion back, or click the transom pane above a sidelight to remove it there.

The transom and sidelight frames share one continuous system of vertical and horizontal frame bars with the door frame itself (using the same frame Width and Depth), instead of each being a separate closed frame. This leaves no extra seam lines where the sidelight and the transom meet.

DIMENSION

  • Width: the width of the frame jamb, offset inward in the plane of the wall from the edge of the opening.
  • Depth: the depth of the frame, extruded along the wall normal.

GLASS

GLASS INSERT (switch on the card title, on by default)

When on, a rectangular glass window is cut out of each leaf (a Boolean cut from the solid slab, not added on). When off, the five fields stay visible but are grayed out.

  • Inset Left / Inset Right / Inset Top / Inset Bottom: the margin from the glass edge to the matching edge of the leaf. The four values are independent. For Double, Left and Right of the right leaf are mirrored automatically, so both windows are symmetric about the center joint.
  • Thickness: the glass thickness, 0.50 in by default (the slider covers up to 1.00 in, and you can type more). It is independent of the leaf Thickness (the glass is centered in the leaf’s thickness band and is not necessarily as thick as the slab).

HANDLE

HARDWARE

Every door always has a handle, front and back of each leaf. There is no “off” option.

  • Style: five styles.
    • Lever: a 1.5 in round rose with a 4 in stepped grip.
    • Round Pull: one continuous bent tube in a D shape, with a default 9 in mounting spacing.
    • C-Shape Pull: a round-tube pull with a 90 degree offset in the plane, default 8 in mounting spacing.
    • Ladder Pull: one main vertical tube and two short posts that fix it to the door. Length is set to 66 in when you switch to this style (the slider ends at 66 in and you can type more).
    • L-Shape Pull: one L-shaped main tube (a vertical run and a horizontal foot with a rounded bend) and four short posts. Length is set to 48 in when you switch to this style, which is also where its slider ends (the only style with a different slider end); a longer value is limited only by the door height. The horizontal foot length is worked out from the door width automatically (from the bend to the opposite jamb with 2.5 in left over), so you do not set it.
  • Height: the height of the handle center, measured from the floor.
  • Length: shown only for Round Pull, C-Shape Pull, Ladder Pull and L-Shape Pull. The overall length of the handle in the vertical direction (the center to center mounting spacing).

How the settings work together

  • A single door is always hinged on the left; a double door is hinged at both outer jambs. There is no hinge setting.
  • Open Amount changes only the preview. The baked leaf is always the closed position, centered within the frame Depth.
  • Dragging a sidelight or transom out in the drawing turns its switch on and fills in its size; dragging it back to zero turns it off.
  • The wall is hidden automatically when the dialog opens. Cancel shows it again unchanged. Bake cuts the door opening in the wall and then shows it. The wall keeps the same object ID (the geometry of the same object is replaced, not deleted and recreated), so other tools and user text that refer to the wall stay valid.
  • The opening is a pure rectangle. Arched or odd-shaped openings are not supported (unlike zWindow, which accepts any closed curve).
  • If the frame Width is too large (Width / 2 or more), the offset fails and falls back, with a warning on the warning card beside the window. You may get only the outer frame with no inner opening.

Good to know

  • The wall must be a solid (a solid Brep or polysurface) for the cut to work. If the wall cannot be cut, for example a single open surface, the door is still baked: a warning is printed on the command line and the wall is left as it was.
  • Bake does not close the window? There is no door to build. The warning card beside the window shows a red “Nothing to bake” line and the reason, for example the wall face is curved, the picked face is horizontal, the wall no longer exists, or Width or Height is 0. Fix it and press Bake again.
  • Baked parts go on the sublayers Frame, Leaf, Glass and Handle under the red zDoor parent layer.
  • If the wall is split into several pieces by the opening, zDoor tries to join them back into one object. If joining fails, they stay as separate objects. No geometry is lost silently.
  • Automatic wall cutting is the part most likely to leave something unexpected. zDoor only cuts while the wall is hidden or unlocked during the dialog, falls back to deleting and re-creating the wall (keeping its layer and other properties) if replacing fails, and always prints a message on the command line when something fails. Even so, please check the wall geometry after baking.
  • If the host wall has been deleted by the time you run zDoorEdit, it refuses to reopen and says the wall no longer exists.
  • In zDoorEdit you can change the opening too (Width, Height, TRANSOM and SIDELIGHT): on Bake the wall closes the old opening and cuts the new one, so a wider door grows the hole and a narrower one fills it back; the preview shows the wall that way while the window is open. This needs a closed (solid) wall with a flat back face. If the wall is a surface, or the Boolean fails, the command says so and changes nothing.
  • Editing a copy of a baked door changes only that copy.
  • By default a single door is 40 in x 80 in. You do not draw a boundary curve first, as you do for zWindow.
  • If the door is exploded, or its identity mark (user text) is otherwise destroyed, zDoorEdit can no longer recognize it and refuses to edit. This is the same as the edit commands of zWindow and zLouver.
  • The glass window, transom and sidelight are all fixed and cannot open. Unlike zWindow, there are no operable sashes or louver panels.
  • A transom height or sidelight width of 0 or very small silently produces nothing, with no error.