Ze Meng
← ZTools

Architecture

zStairByCrv

Stair that follows a curve

zStairByCrv builds a stair that climbs along a curve you have already drawn. It suits stairs whose path is not a simple rectangular region and must follow a specific line.

Good for:

  • A stair path that is a free curve or a polyline, not a rectangular region.
  • A stair that must follow an existing building outline or ramp path exactly.
  • Single-storey or continuous multi-storey stairs.

Not for:

  • A known rectangular or regular region where you want the tool to plan the layout: use zStairByRegion.
  • Spiral or winding stairs: use zSpiralStair.

The building code is always IBC 2027 (riser 4 in to 7 in, tread at least 11 in, width at least 44 in; the same numbers as IBC 2018, 2021 and 2024). Code limits are yellow tips only and never stop Bake.

Quick start

  1. Run zStairByCrv.
  2. Pick a horizontal curve as the stair path (a closed one makes a Loop stair) (see Good to know).
  3. Click near the end of the curve where the stair starts (press Enter to start at the start of the curve). The end nearest the cursor shows a red dot, a START label and a heavy red arrow along the path (the way the stair walks); the other end shows END. On a closed curve you click the start (START, red) and then the exit (EXIT, blue, with its own arrow); F turns the direction round. The direction is decided here, so there is no check box for it in the dialog.
  4. The dialog opens with a live preview. The SECTION drawing sits on top, and the tabs FLIGHT, LANDING, STRINGER and RAILING below it. Align is set in the viewport with the three buttons on the path. The part the open tab edits is drawn at full weight, and a hint line under the drawing tells you what it cannot show.
  5. Bake creates the real geometry. Cancel discards the preview. If there is nothing to build (for example the path is too short), the window stays open and the warning card shows a red “Nothing to bake” line with the reason.
  6. To change a baked stair, select any part of it and run zStairByCrvEdit (see Good to know for the limits). While the Edit window is open, the path is drawn on top of the preview.

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. After Bake, zRailing opens by itself on the handrail curves with the railing that belongs to the preset.

SECTION

  • The drawing is a section along the path, unrolled flat. Double-click a number on it to type the value. On the FLIGHT tab you can type the height this way.
  • On the FLIGHT tab, the Global / Detail toggle at the right end of the card title switches to Detail, which dimensions the steps.
  • On the LANDING tab, the drawing shows the landings; they are added and removed in the window, not on the drawing.

FLIGHT

The window has four tabs: FLIGHT (the body of the stair), LANDING, STRINGER and RAILING. Everything on FLIGHT is shown at once, in four cards: TYPE, FLOOR, STEP and the rows of the Type you chose.

Lengths follow the Rhino document unit: a bare number means the document unit, and a unit typed after it always works. Height, Width and the storey heights (Typical, Ground, Basement) are feet in Imperial and meters in Metric, in Single and Multiple mode. There is no unit switch in this window. Each system keeps its own values.

Align (in the viewport)

Align is not in the window. Three small buttons lie across the picked curve at the middle of its longest straight run (like the IN / OUT flip of zRailing); the current one is red. Each button draws the stair as a band and the curve as a heavy line: Left (the curve is the left edge of the stair, the width grows to the right of the travel), Center (the curve is the center line, the width grows to both sides) and Right (the curve is the right edge, the width grows to the left). Click a button and the preview moves.

TYPE

  • Type: how the stair is built.
    • Plank: separate horizontal treads and vertical risers. The card then also shows TREAD Thickness, RISER Thickness and Nosing.
    • Slab: one solid sloping slab, like a cast-in-place concrete stair. The card then shows the slab Thickness.
    • Ramp: no steps, just one continuous sloping ramp. The card then shows the ramp Thickness, and the RISER and TREAD rows are hidden because a ramp has no discrete steps. The STRINGER tab is dimmed, and the hint line under the drawing says why (“A ramp has no stringer”).
  • Laps: only for a closed curve. A closed curve is a Loop stair on its own (there is no Loop switch): it is walked lap after lap while it climbs. Laps is the total number of laps (for example 2 or 1.67); 0 or Auto uses the fewest laps that keep every tread at its minimum (the Going field). The headroom between laps is checked on the stair as built: everywhere along the path, from the nosing line up to the underside of the lap above (a Slab’s soffit and a Plank tread sit about a riser under their nosing line; a landing only its own slab). Where it is under 80 in, a yellow tip gives the smallest clear height and how far up the stair it is.
  • Fit Curve Length and Retain Path Curvature, side by side.
    • Fit Curve Length (on by default): Going becomes a read-only derived value (usable path length / number of steps), and the real length of the path is followed exactly, with no early stop and no extension. If the derived Going falls below the code minimum, the stair is still built and a yellow tip says so. Off: Going is the value you type and is never adjusted; the path is only a direction. The number of steps comes from Height and Riser, and the steps are laid along the path at the fixed Going. If the path is longer than needed, the extra length is simply not used. If it is too short, the stair continues in a straight line from the end of the last used path segment, along its tangent, until all steps are placed. A closed curve is always a Loop, so this switch is grayed.
    • Retain Path Curvature: when the path has arc segments, whether the tread, riser and landing edges are built from true arcs. Hover its name to see a drawing of Off and On. On: smooth true arcs. Off: arcs are approximated by line segments.

FLOOR

  • Mode (Single / Multiple): one storey or several continuous storeys.
    • Single: one flight climbing to the Height you set. A larger value gives more steps and a longer stair. A very small value may give only one or two steps.
    • Multiple: stairs for several storeys in a row. The Height row is replaced by a table of Typical / Ground / Basement rows, each with an FFH (floor-to-floor height) and a Count. A Loop stair is one storey.
  • Trim Below (on by default): cuts away the part of the stringers, slab or ramp that is below the level of the picked curve, so the underside sits on the ground. With it off you may see extra solid hanging under the stair. Hover its name to see a drawing of Off and On.

STEP

  • Width: the stair width, constant along the whole stair. About 3 ft is common for houses and 4 ft or more for public buildings.
  • Thickness (Slab): the thickness of the slab, measured down from the nosing line. It is also the thickness of landings.
  • Thickness (Ramp): the thickness of the ramp slab. It is separate from the slab Thickness.

RISER (not shown for Ramp)

  • RISER Height (target riser height): the step height you want. The tool uses it to work out how many steps are needed. It is a target, not an exact final value. The real height of each step is adjusted slightly by rounding, usually by a small amount. A sensible range for houses is about 6.5 in to 7.5 in.
  • RISER Thickness: the thickness of the riser board. Shown only for Plank.

TREAD (not shown for Ramp)

  • Going: the horizontal depth of each step, measured along the path. With Fit Curve Length off it is the value you type and it applies as is. With it on it is grayed out and shows the derived value. For a Loop it is the minimum tread. A sensible range is about 10 in to 12 in (default 11 in).
  • TREAD Thickness: the tread thickness, default 1 in (the slider covers 0.5 in to 2 in; the smallest value is 0.01 in). Shown only for Plank.
  • Nosing: how far the front edge of the tread overhangs the riser. Default 1 in. Shown only for Plank.

LANDING

One card, LANDINGS.

  • Follow Code (on by default) and Equal Treads, side by side. Follow Code adds a landing at every change of direction and wherever the code limit on steps per flight is reached. Equal Treads spreads the steps as evenly as possible between those landings; when off, each flight climbs as far as the code allows before a landing is added. Hover its name to see a drawing of Off and On. Equal Treads is grayed while Follow Code is off.
  • Under them, every landing of the stair as a small tag, lowest first, with its height above the base of the stair.
    • CODE (dotted, with a lock): made by Follow Code. It cannot be deleted; turn Follow Code off to remove all of them.
    • HEIGHT (with a cross): one you added at a height. The cross deletes it.
    • SEGMENT (with a cross): one you put on a segment of the curve, shown by the number of the segment (counted from 1 in the order you drew them). The cross deletes it; hovering the tag lights up that segment in the viewport.
  • Add at Height: type a height above the base of the stair (feet in Imperial, meters in Metric) and press + Add. It must fall strictly inside a single flight, otherwise the tool refuses to build and shows a warning instead of ignoring it silently.
  • On a segment of the curve (when the path has more than one segment): while the LANDING tab is open, every segment of the curve shows a numbered dot in the viewport (the number of its SEGMENT tag). Click a dot to put a landing on that segment (a corner, say); click it again to take it away. A picked segment turns red. On a closed curve (Loop) the landing comes back on every lap. The Align buttons hide while this tab is open.
  • The landings you add (by height or by segment) are built whether Follow Code is on or off.

STRINGER

  • PROFILE: the switch on the card title turns solid sloping stringers on both sides of the stair on or off. With Type = Ramp this switch is forced off and the tab cannot be opened.
    • STRINGER Thickness: the stringer thickness (the slider covers 0.01 in to 4 in; the smallest value is 0.01 in).
    • STRINGER Depth: how deep the stringer reaches below the nosing line, default 12 in (the slider covers 9 in to 24 in; the smallest value is 0.01 in). In Slab mode it is capped automatically (never more than one riser plus the slab Thickness), so the stringer does not poke through the underside of the slab.

RAILING > PROFILE

The switch on the card title additionally outputs a pair of guide curves following the stair. When on:

  • Inset: how far the rail guide is pulled in from the step edge. It can be adjusted only while Stringer is off. If Stringer is on, it is disabled.
  • BUILD RAILING: tick Inner and / or Outer, then press Create Railing (opens zRailing) or Create Side-Mount Railing (opens zRailingSide) on those handrail profile curves. The stair window hides and comes back, unbaked and editable, when you close the railing window; the railing stays as a separate object and does not follow later changes of the stair. The buttons need the PROFILE switch on.

How the settings work together

  • Fit Curve Length decides who follows whom. Off, Going is your fixed value and the path is only a direction (a long path is cut short, a short path is extended). On, Going is a read-only derived value and the path length is followed exactly. Either way Riser is only a target, and the number of steps always comes from Height and Riser.
  • With Fit Curve Length on, a derived Going below the code minimum only gives a yellow tip. The stair is still built and baked. To meet the code, lengthen the path, reduce the number of steps, or turn Fit Curve Length off.
  • Mode = Multiple replaces the Height row with the Typical / Ground / Basement table.
  • Type shows or hides a whole set of rows. Plank shows TREAD Thickness, RISER Thickness and Nosing. Slab shows the slab Thickness. Ramp shows the ramp Thickness, hides the RISER and TREAD rows, and forces Stringer off. Switching back lets you turn Stringer on again.
  • With Follow Code off, Equal Treads is grayed. The landings you added are still built.
  • Stringer and Railing Profile: when Stringer is on, the PROFILE Inset is disabled, because the rail guide then follows the center of the stringer. Inset can be set only when Stringer is off.
  • Code checks only warn, they never stop you. A warning card sits beside the dialog with red errors and other notes. Under it, a separate card titled “IBC 2027 Limits” lists in yellow the limits this stair breaks (for example Riser or Going outside the code range), then the IBC limits in gray. You can still bake.
  • Typed numbers apply when you press Enter or leave the field. The drawing follows each key press, and the preview builds in the background, so the window stays responsive.
  • Bake with nothing to build keeps the window open. When the path is too short, corners or landings use the whole path, or a manual landing height is not valid, the warning card opens with a red “Nothing to bake” line and the reason.

Good to know

  • The picked curve must be horizontal. A closed curve is built as a Loop stair; a curve with clear ups and downs (not a flat 2D curve) is rejected and the command is cancelled. A curve that is too short is rejected too. A self-intersecting curve only gives a warning, but steps may overlap at the crossing.
  • There is no radius input. All sizes come from the real length of the curve, Width and Going. If the proportions are not what you expected, check Going first. (This applies to Fit Curve. In Fixed Going, Going is the value you typed.)
  • Only a red warning stops Bake. A path that is too short, or corners or landings that use the whole path, give a red warning on the warning card and an empty preview, and Bake shows “Nothing to bake” instead of closing. Yellow code tips never stop Bake. This is a safeguard, not a bug.
  • Deleting the picked curve while the window is open empties the preview and the warning card says the curve was deleted. Undo the delete or run zStairByCrv again.
  • A manual landing height must be strictly inside a single flight, or the build is refused. Unlike zStairByRegion, which ignores invalid settings silently, this tool stops and warns. If the stair does not appear at all, check whether a manual landing height sits exactly on a corner or a landing edge.
  • Exploding part of a baked stair means that part can never be edited again. Exploded fragments lose the identity information, so zStairByCrvEdit refuses them. If other parts of the group are still intact, you can select those and keep editing the whole stair, but the exploded fragments are not cleaned up, and you have to delete them by hand.
  • Edit follows a move or a rotation. Every baked part remembers where it was built, so Edit rebuilds the stair where it is now, from any part that is still intact. No reference line is baked. A scale or a tilt is not kept: the stair is rebuilt upright at its true size.
  • A manual deformation of a single part is thrown away when you run Edit. Edit rebuilds the whole stair from the original settings and can only recognize a rigid move or rotation of the whole stair. A part you stretched or scaled is replaced without any warning.
  • Copying and pasting a baked stair is safe. The tool recognizes a copy as independent, and editing one does not affect the other.
  • If a stored setting is deleted or damaged, Edit silently replaces it with the default and rebuilds. The result may differ from what you set, with no message telling you which setting went back to default.
  • Repeated flights are baked as Rhino blocks. In Plank construction, the treads, risers and nosings of flights that are identical (for example every middle storey of a Multiple stair) share one block definition, which keeps the file small. Landings, stringers and the railing guide are ordinary objects. Slab and Ramp are not instanced. To change one flight, select it and use Edit as usual. Do not use Block Edit on these blocks, because every identical flight changes with it and Edit rebuilds them anyway.