Architecture: Stair
arch_stairDraw a stair plan with risers, outline, walking line, arrow, and label, then report the Blondel step-length rule (2R+G) for design validation.
Instructions
A stair in plan: every riser as a line, the outline, the walking line with its arrow.
The label ("UP" / "ÇIKIŞ") sits on the first tread at 2.5 mm × scale. The
result reports blondel - 2R + G against 600-650 mm, the step-length rule
attributed to François Blondel (1675). It is a design rule reported for the
drafter, not a building code: no national stair regulation is checked and
a value outside the band is reported (ok: false), not refused.
Refused before anything is drawn: a stair id already on the drawing, a non-positive width, riser height or going, fewer than 2 risers (4 for an L or a U - two per flight), a non-integer riser count, an unknown kind, turn or language.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | straight | l | u | straight |
| lang | No | Label language: en | tr | en |
| turn | No | L / U stairs: which way the second flight turns | left |
| going | Yes | Tread going G (mm) | |
| scale | No | Plot-scale denominator for the label and arrow (50 = 1:50) | |
| width | Yes | Flight width (mm) | |
| risers | Yes | Number of risers from floor to floor | |
| start_x | Yes | WCS X of the midpoint of the bottom riser | |
| start_y | Yes | WCS Y of the midpoint of the bottom riser | |
| stair_id | Yes | Stair id, unique on the drawing | |
| riser_height | Yes | Riser height R (mm) | |
| direction_deg | No | Direction up the first flight, degrees CCW from +X |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||