Repository navigation
feat(ifc): write a stair's flight set values from its flights (W7) (#1186) (RE-287) - #1201
Conversation
…et-placement, its Pset_StairFlightCommon from its flights (W7) (#1186) (RE-287)
|
Owner review: |
# Conflicts: # docs/rvt-moat-break-reconnaissance.md
Summary
Write a stair's
Pset_StairCommon.TreadLengthAtInnerSideand, withrvt-ifc --revit-set-placement, thePset_StairFlightCommonRevit's export gives eachIfcStair: the sums of its flights' risers and treads and their common lengths. Related issues: #1186 (the stair and flight types' part is in #1200; the spiral stair's tread count, 3 values per office file, is not read).Motivation
Revit's export of the BIM4LCA office writes on each of 14 stairs 8 values rvt-rs omitted (
Pset_StairCommon.TreadLengthAtInnerSideand seven inPset_StairFlightCommon), and one stair and its dimensions on each R2025 stair model.Changes
stair_property_set(src/ifc/export_content.rs):TreadLengthAtInnerSideon a stair, the tread depth, as a flight's.stair_flight_additions(src/ifc/revit_set_placement.rs): for eachIfcStairwith flights,NumberOfRiserandNumberOfTreadssummed over its flights, each length as its flights' common value; a property only where every flight holds it and, for a length, all agree.Testing
Unit tests are banned in this repository; none added. Verified end to end with Measure on the BIM4LCA office (CC BY-SA 4.0) and puzzbobb's R2025 models (Apache-2.0) against Revit's own IFC4 exports.
main(-f base=main -f nordic=true -f r2025=true -f ifc_flags=--revit-set-placement), commit a0ec6e5.psets_vs_ifc.py, equal / different / missing): office as built 45,088 / 1 / 436 to 45,199 / 1 / 325, at permit 45,270 / 1 / 433 to 45,381 / 1 / 322 (+111 each, none different); R2025 stair models 107 / 0 / 54 to 115 / 0 / 46 (models 13, 14, 15), 105 / 0 / 48 to 113 / 0 / 40 (16), 103 / 0 / 50 to 110 / 0 / 43 (17).parameter_value_countmoves by exactly the values written: +111, +111, +8, +8, +8, +8, +7.Pset_StairCommon.TreadLengthAtInnerSide0 to 14 of 14 equal;Pset_StairFlightCommon.RiserHeight,TreadLength,TreadLengthAtOffsetandTreadLengthAtInnerSide35 to 49 of 49;NumberOfRiser35 to 49 of 52;NumberOfTreads34 to 47 of 52;NosingLength35 to 49 of 54. The remaining misses are the stair and flight types (feat(ifc)!: write type objects' FireRating and LoadBearing, and stair types' dimensions, in their common sets (#1185) (RE-286) #1200) and the spiral stair's tread count.The gap
Stairselement its own values (thePset_StairCommonones), not the flights' sums that the container's flight set holds, and where the exporter fills that set from the runs is not read (RE-287 §3). It is exact on 14 stairs of one to three flights on each office file and on five R2025 stairs.TreadLengthAtInnerSideis the tread depth because no stair type measured setsSTAIRSTYPE_MINIMUM_TREAD_WIDTH_INSIDE_BOUNDARY(revit-ifc takes that where it is above zero). rvt-rs reads no stair type's value; a stair type that sets one would make the stair's value and the flights' differ from Revit's.NumberOfTreadsand its flight's (18) are not read.Audit-honesty checklist
changelog.d/added/stair-flight-set.mdBreaking changes
None.
Screenshots or output samples
Office as built:
Pset_StairCommon.TreadLengthAtInnerSide: 14, equal 14, different 0, missing 0(was equal 0, missing 14);Pset_StairFlightCommon.RiserHeight: 49, equal 49, different 0, missing 0(was equal 35, missing 14).