Repository navigation
Open
Labels
area:elementsWork in the elements area.area:geometryWork in the geometry area.priority:P2Important quality, usability, or hardening work.type:featureNew product or library capability.
Description
RE-52 draws 34 of Snowdon Towers' 43 stair flights as their treads and risers. This tracks the other 9 and the residuals, with what is measured so far.
Monolithic runs: geometry measured, one flag missing
Revit's IFC4 geometry of run 2061630 (type 168815, "3/4" Nosing", 2.5 in structural depth), as [along, up] from the run's sketch origin:
- Each riser leans from the step's inner corner
(u_{k-1} + N, (k-1)h)up to its nosing(u_{k-1}, kh), the slanted flag of the run type. - Each tread runs from its nosing to the next inner corner.
- The underside is one straight line. It runs parallel to the line through the inner corners, one structural depth below it measured square to the pitch: 0.2225 ft vertically at h = 0.375, tread 1 ft, which is 0.2083 ft (2.5 in) square to the pitch.
- Type 951855 ("Solid Base") closes the profile down to the floor instead.
The missing piece is Revit's "End with Riser" run setting:
- 2061630 has 17 riser lines, and its flight riser count is 17. Revit draws 16 risers and ends the run with a tread at the 17th line.
- 2234674 (13 lines, 12 risers) and 1563804 (3 lines, 2 risers) end with a tread too.
- The 34 drawn runs all end with a riser.
No byte at a fixed offset from the run's data header or from its riser-count anchor separates the two groups, so the setting is stored elsewhere. Until it is read, these runs keep their box.
Other residuals
- Upright-riser nosing (4 flights). Revit shapes the nosing with the type's nosing profile, a family. The tread's front is 0.0625 ft thick and chamfers back. rvt-rs draws it square.
- First riser on a landing (run 1240916). Revit carries it one tread thickness below the landing top.
- Riserless runs, type 1557288 (3 flights). Treads overhang the run's sides by 0.083 ft, and no read field gives that. The byte at +0xb9 of the run type is 3 on this type only. Separate treads also need a multi-solid body.
- Spiral runs (2 flights). Their sketch is arcs, not the straight lines
run_sketchreads.
Oracles: Snowdon Towers with Revit's IFC4 export (local only). Measured with the RE-52 probe and scoring script.
Metadata
Metadata
Assignees
Labels
area:elementsWork in the elements area.area:geometryWork in the geometry area.priority:P2Important quality, usability, or hardening work.type:featureNew product or library capability.
Activity
DrunkOnJava commentedon Sep 24, 2026
Two more places the "End with Riser" run setting is not, on Snowdon Towers (measured negative, 2026-09-24). The runs are split into the 34 that RE-52 draws, which end with a riser, and the three that end with a tread (2061630, 2234674, 1563804).
i64 BuiltInParameter · u32 value, as material data keeps them (RE-58), number only 25, across 14 of the 37 runs. The run data does not keep its instance parameters in that form, so the setting cannot be read off such an entry.Together with the fixed offsets from the data header and the riser-count anchor (already negative), this rules out the run's own header and anchor regions. What is left is the stair's data (runs are its sub-elements) or a separate parameter store.
DrunkOnJava commentedon Sep 24, 2026
A near-miss in the stair's own data, not the run's. Each tread-ending run is the only run of its stair: 1501921, 2060002 and 2120094.
In the stair's element data, the riser count sits at
STAIR_DIMENSIONS_ANCHOR+ 88. The words after it read01 00 00 00 · 00 01 01 XX · 01 00 00 00, and over all 21 Snowdon stairs:So byte +99 is not the End-with-Riser setting, but it may be a related one, such as the monolithic run construction that 1501921 and 2060002 share. Neighbouring bytes (+96, +97, +100) vary within each group. What follows is a variable-length u32 list (runs of
1, then0), then03 00 00 00 · ff ff ff ff fa 0e, so fixed offsets beyond +100 compare unrelated fields.Next: read that u32 list as per-step flags. Its length and its trailing zeros may encode the last step.
DrunkOnJava commentedon Sep 24, 2026
The u32 list after byte +100 of the stair's data is not a per-step list (measured negative, 2026-09-24, all 21 Snowdon stairs).
STAIR_DIMENSIONS_ANCHOR+ 100 the words read1 · ffffffff · 0x0efd · 0 ×8 · 0x20000 · 0 ×5 · 0x20000 · 0xff0b0000 · ffffffff · 0x00ffffff · N · 1 ×N · 0 ×3. Three stairs carry0x10efdin place of0x0efd, with a different layout after it: 1501921 and 2120094, which end with a tread, and 832580, which ends with a riser.0x0efdand0x10efdare shaped like class tags.0x0efd/0x10efdsplit nor N separates the stairs whose runs end with a tread (1501921, 2060002, 2120094) from the 18 whose runs end with a riser.Together with the earlier negatives, the "End with Riser" setting is in none of these:
The run type is not it either. The tread-ending runs use types that no riser-ending run uses: 2061630 and 2234674 use 168815, and 1563804 uses 1565035. The 34 drawn runs use 613941 and 168810. That correlation turns out to be coincidence:
01 00 00 00 · u64 id, tagdb 0f) are byte-identical up to the name, except two u64 ElementId slots at +0xa1 and +0xa9. Those are unset on 168810 and set on 1565035: its tread and riser materials.The three tread-ending runs keep their box. Every stored location examined so far is negative. The setting is a run instance parameter in Revit, so it is presumably kept outside the structures read here, such as an instance parameter table not yet located.
feat(elements): name stairs and their runs, landings and supports as …
DrunkOnJava commentedon Sep 24, 2026
Two more places the End with Riser setting is not (measured negative, 2026-09-24, Snowdon Towers, the 3 tread-ending runs against 30 riser-ending runs):
u32 value · u16 tagframes (as theff ff ff ff fb 03stair anchor is two unset frames), only 7 tags occur exactly once in every run's first 0x5a0 data bytes. None of them has a value that is the same on the three tread-ending runs and absent from the others.Negatives so far on this setting:
The three runs keep their box.
DrunkOnJava commentedon Sep 28, 2026
Riserless runs (type 1557288), measured on Revit's IFC4 mesh of run 746486 (10 risers):
Drawing these runs would also need a body of several solids per flight. They keep their box for now.
Now handled by #464 (RE-92): End with Riser is read, and monolithic runs are drawn. Snowdon goes from 34 to 38 of 43 flights drawn. Still open: riserless (above), spiral (arc sketch), the upright nosing profile, and the first riser starting on a landing.
feat(elements): draw stair runs ending with a tread and monolithic ru…
puzzbobb commentedon Oct 5, 2026
The "End with Riser" setting is a named member of the run's own record:
StairsRun.m_endWithRiser, next tom_beginWithRiser. The schema inFormats/Latestdeclares both, so they can be read by name withnative_parameters::decode_graphinstead of searched for at offsets. The probe below does that for everyStairsRunandStairsRunTyperecord. On Snowdon Towers Architectural it decodes all 43 runs and 8 run types.m_endWithRiser(m_beginWithRiseris true on all 43):m_endWithRiserSo it gives two of the three. Two things I can't settle from here:
StairsRunType.m_hasRiserfalse andm_hasMonolithicSupporttrue (below). For a monolithic type with no riser elements, "ends with a riser" may be met by the riser line and not drawn as a riser. Its riser indices also differ from the other two:m_topRiserIndex17 againstm_lastRiser16, where 1563804 and 2234674 have 2/2 and 12/12. That difference doesn't separate the groups on its own, though: 20 riser-ending runs also have top = last + 1.m_topRiserIndex2 =m_lastRiser, like 1563804. Is it one of RE-52's 34 drawn runs? If so, Revit's IFC body of it would show whether it actually ends with a tread.The run types, which bear on the other residuals:
m_hasRiserm_riserIsSlantedm_hasMonolithicSupportm_riserTreadConnection1557288 has no riser and no monolithic support, which matches the separate-treads body you measured. Its
+0xb9= 3 is not one of these four members. The slanted flag you read for the monolithic runs ism_riserIsSlanted.Measured on my copy of Snowdon Towers Architectural (sha256
8ac90a85…, written by Revit 2025). Its ElementIds match the ones in this issue, but please rerun on yours.Probe:
examples/probe_357_stairs_run_members.rs(one JSON line per record; rustfmt and clippy-D warningsclean onc5f7e43)85 remaining items
fix(elements): a stair run is called spiral only where its treads lie…