Repository navigation
fix(elements): a stair run is called spiral only where its treads lie about one centre, as a spiral run's do (#2046) - #2100
Merged
Conversation
… about one centre, as a spiral run's do (#2046)
Owner
Author
|
Measure read against the rows (44589336915, All 120 exports and all 102
Whether CHL's three now come out |
…ut one centre, and the comment and fragment say what Revit writes on those flights (#2046)
DrunkOnJava
marked this pull request as ready for review
November 19, 2026 19:37
…g on an open model and the reporter's three are not yet measured (#2046)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
A stair run is now called spiral only where its treads lie about one centre, as a spiral run's do. Before, rvt-rs wrote
SPIRALfor a flight, andSPIRAL_STAIRfor its stair, wherever every tread of the run givesm_runType2. On a reporter's Revit 2027 model with no spiral run, Revit's export does not call three such runs spiral: their flights' types areUSERDEFINEDwith anElementTypeofNOTDEFINED(#2046).Motivation
HWT-25's count on #2046, CHL, 18 flights paired by GlobalId: Revit's export and rvt-rs 0.25.0 both write
STRAIGHTon the types of the same 9 flights. On the other 9, Revit writesUSERDEFINEDwith anElementTypeofNOTDEFINED, and rvt-rs writesNOTDEFINEDon 6 andSPIRALon 3. The model has no spiral stair; the 3 are one flight in each of its three three-flight stairs.Revit's exporter takes a flight's value from the run's own style (revit-ifc,
StairsExporter.GetValidatedStairFlightType, CLEANROOM.md source 5): the style's name matched againstIfcStairFlightTypeEnum, so Straight, Spiral and Winder give their values, and any other style, such as a sketched run, givesNOTDEFINED. To Revit, then, the three runs are not spiral runs, and their treads'm_runType2 does not tell them from one. The rule rested on two spiral runs (RE-217 §10): R2025 model 17's and the BIM4LCA office's run 3057703.Changes
src/research/native_stairs.rs:native_run_shapesgives a run whose treads all give 2 only wherespiralaccepts its treads, in riser order (one centre, one pair of radii spanning the run's width, each tread beside and above the one before, all climbing the same way round), the test the 2024 spiral treads are drawn with (Stair flights not yet drawn: monolithic spiral runs, riserless runs with a nosing, and nosing profiles #357). Otherwise the run has no shape, so its flight and its stair keepNOTDEFINED.changelog.d/fixed/2046-spiral-flight-type.md.reports/element-framing/RE-217-stair-runs-2025.md: §13, the narrowing and its Measure.Testing
Unit tests are banned in this repository. Rows registered before any run is read. Measure of
5e36af9fagainstmain(69ac3a26): nordic, r2025, samples, holdout, every scorer.predefined_types_vs_ifc, the BIM4LCA office as built and at permit keep 35 of 35 flights with Revit'sPredefinedType(34STRAIGHT, 1SPIRAL, run 3057703) and their flight types' values, and R2025 models 13 to 17 keep 5 of 5 (model 17'sSPIRAL). If model 17 losesSPIRAL, the spiral test does not hold on its Revit 2025 treads, and that is read before anything else.PredefinedTypecount inpredefined_types_vs_ifcfalls.What it cannot show. No open model has a run like CHL's three, so the Measure can only show that the measured spirals are kept. Whether the three are now
NOTDEFINEDis HWT-25's count to make, with a build of5e36af9f.Results: read against the rows: rows 1 to 5 hold, row 3 in its empty case.
Not changed. Revit writes
USERDEFINEDwith anElementTypeofNOTDEFINEDon the types of the 6 flights where rvt-rs writesNOTDEFINED. That is one export's reading, not measured on an open model, and is reported on #2046.Audit-honesty checklist
c1a19148, which changessrc/by a comment alone).69ac3a26: the narrowing innative_run_shapesand its comments, the changelog fragment and RE-217 §13. The same-project verdict on5e36af9fis carried toc1a19148by Measure 44601082079 and to3dd2038eby Measure 44602563602: comment and docs changes only, every export byte-identical.Legal and contribution hygiene
Breaking changes
None.