Create stairs
create_stairsCreates a straight or turning stair in one undo step from a baseline using point coordinates, height, width and riser count, returning GUIDs or errors for each stair.
Instructions
Creates stairs in one undo step from a baseline (bottom to top): 'begin'/'end' for a straight flight or a 'baseline' polyline for turning stairs (landings/winders follow the Stair tool defaults). Typical: {begin: {x:0,y:0}, end: {x:4.5,y:0}, height: 3, width: 1.2, riserCount: 17}. The baseline must be long enough for the treads (≈ (riserCount-1) × treadDepth); if Archicad rejects the geometry because of the stair rules, adjust the values or pass ignoreRules: true. Coordinates in meters, angles in degrees, on the given story (default: current story); unspecified settings come from the tool defaults. Returns [{guid, type} | {error}]. get_element_details shows riser/tread counts, pitch, baseline, boundaries and part GUIDs; add a railing along a boundary with create_railings.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| stairs | Yes | Stairs to create | |
| undoName | No | Name of the undo step shown in Archicad |