Repository navigation
Description
Found comparing rvt-rs's export of Autodesk's Snowdon Towers architectural sample with Revit's own IFC4 export of it (both local; counts and relations here). RE-65 and RE-68 already say that "Revit writes a multistory stair once per storey under one Tag" and measure names and storeys "against any copy"; no issue tracked the copies themselves, which rvt-rs does not write.
What differs. The sample has three multistory assembled stairs (621690, 701090, 882250; connected from L3 to L4). Revit writes each of them twice: the stair on L3 and Assembled Stair:Stair:<id>:2 on L4, and under each of the two its own parts. Beyond rvt-rs's count of the same Tag and class, Revit's export holds 53 entities:
| Class | More in Revit | What they are |
|---|---|---|
IfcStair |
3 | the :2 stair of each |
IfcStairFlight |
6 | Run n:2 of each stair's two runs, aggregated under the :2 stair |
IfcMember |
30 | Stringer n:2, 10 per stair, STRINGER |
IfcSlab |
3 | each stair's landing |
IfcRailing |
11 | each railing of the stair a second time, same name, aggregated under the :2 stair |
Every other IfcStair, IfcStairFlight, IfcMember and IfcRailing Tag has the same count on both sides.
What the copy is, measured on the 30 stringer pairs (from the exports' own meshes): same extents and the same volume as the original, and the centre exactly 0.000, 0.000, +4.064 m from it on 30 of 30, a pure vertical translation of one storey height. The copy's GlobalId is not the original's with a changed tail: all 16 bytes differ on the 30 pairs, so a rule for it is a finding of its own before anything is written.
What is not known. Where the file says the stair is multistory and which Levels it connects: the schema has MultistoryStairs (6 fields) and MultistoryStairsDataCell (3). The first step is a probe that lists them for the three stairs, with the connected Levels' elevations, against Revit's copies (storey L4, shift 4.064 m).
Rows to register before the change (to be run on the kept exports of an unfiltered Measure, scored locally against Revit's export, counts only):
- The probe: the three stairs name their connected Levels in their own records and the elevation differences equal the shift of the copies, on 3 of 3.
- The change: rvt-rs writes the copies, 53 entities, each within 1 mm of Revit's copy and aggregated and named as Revit's are; the entity counts per Tag and class of the Snowdon architectural export equal Revit's for these five classes.
- Every other export of the 146 models is byte-identical to
main's, or the difference is a multistory stair named by its record (the probe says which files hold aMultistoryStairsrecord). - The
GlobalIdof a copy is left to its own finding (what Revit derives it from) and the copies are written without one that claims to be Revit's, or the finding comes first.
Measured on Snowdon Towers only (Revit 2024), so by RE-353 the rule runs on 2024 only until another release has a Revit export of a multistory stair. Stair flights and landings may ship as labelled approximations (Griffin, 2026-10-24); a stringer or a railing is not among them.
Activity
[-]Snowdon Towers: 30 stair stringers are two IfcMembers in Revit's export (Stringer N and Stringer N:2) and one in rvt-rs's[/-][+]Multistory stairs: Revit writes the stair once per storey (a ":2" copy with its flights, stringers, landing and railings), rvt-rs writes it once[/+]research(elements): the multistory probe prints the pair set and the …
research(elements): a scorer counts the entities Revit writes for a m…
research(elements): the multistory probe lists each record's pair set…
research(elements): RE-463 reads what Revit writes for a multistory s…
DrunkOnJava commentedon Nov 14, 2026
What the file says (RE-463, #1991): the copies fill the one Level span no set of stairs covers.
The probe ran on Snowdon Towers architectural (43551707746, 43553309916). The three multistory records (621689, 701089 and 882249) each list sets of 14 elements in their
ElementIdIndexPairSet(a stair, a landing, 2 runs, 10 supports), and the stair of each set is an ordinary element between two Levels that rvt-rs already writes once:L4 to L5 is 4.064 m, the height of the L3 to L4 stair (24 risers, 13.333 ft), and Revit writes that stair a second time on L4 with its parts: one copy per uncovered span, 3 of 3. The other stairs are 1 entity in both exports. The probe is not a read of a stored range:
m_multistoryUpToLevelIdis -1 on every stair, theMultistoryStairsDataCellthe schema declares is not among the records' objects, andm_excludedBaseLevelIdsis empty, so the span is inferred.rac_advancedholds five groups of one set each (no uncovered span by this rule; whether Revit repeats them is for a Revit export of it,racadv, to say).tools/re/multistory_copies_vs_ifc.pyreads Revit's export against rvt-rs's: 106 entities against 53 on the three stairs (3IfcStair, 6IfcStairFlight, 30IfcMember, 3IfcSlab, 11IfcRailingmore in Revit), and the 30 stringer copies sit exactly 4.064 m above their originals.GlobalId: still unknown. The copy's
GlobalIddiffers from the original's in all 16 bytes, and 10,068 key shapes per pair built from revit-ifc'sGUIDUtilhash keys (Sub-element with index, entity, level, copy and assembly parts; type:name:guid; project plus key) over the 66 pairs reproduce none.Rows for the change, registered before any change (this issue stays open for it):
:2as Revit names them, the stair in the storey of the span's base Level (L4), the parts aggregated under it.main's (no other model holds a group with an uncovered span).GlobalIdis rvt-rs's own and the diagnostics say so, or the rule is found first.research(elements): the multistory scorer takes rvt-rs's export first…
research(elements): a probe, a scorer and RE-463 read what Revit writ…
DrunkOnJava commentedon Nov 14, 2026
What one of Revit's copies holds, read from its export of all three stairs (Snowdon Towers architectural, local only): the shape the change has to write.
Each copy is the original set again with these differences, and no other:
Assembled Stair:Stair:621690,HALF_TURN_STAIR,Tag621690TagandPredefinedType, nameAssembled Stair:Stair:621690:2IfcStairTypeAssembled Stair:_Stair-Metal-Plate StringerTags... Stringer 1,... Landing 1,... Run 1:2appended; a railing keeps its namePredefinedTypeSTRAIGHT(2 of 2, on all three stairs)NOTDEFINED(2 of 2, on all three)Pset_StairCommon,Pset_StairFlightCommon,Pset_EnvironmentalImpactIndicatorsGlobalIdOn rvt-rs's side the original set is already Revit's: the stair, its 10 stringers, landing, 2 flights and 4 railings of 621690 are written with Revit's names,
Tags andGlobalIds, and thePredefinedTypes of all but the railings (Revit writesNOTDEFINEDon them and rvt-rs none, #1713), in runc802574c. The copy is that set shifted, renamed and re-typed, not a new reading.What this fixes for the change, added to the registered rows:
Tag, which the writer already handles: the first entity with aTagtakes Revit'sGlobalIdand each further one is derived from it and its place among the entities sharing theTag(A layered floor's parts take new GlobalIds on every save of a Revit 2027 model (#1829) #1840), so row 4 (rvt-rs's ownGlobalIdfor a copy) needs no new derivation.Tag(type_objects), so the copies must be left out of that grouping to match "type: none".Tagand takes several entities for one, so it sees the copies too: check that it places each by its own location.PredefinedTypeand the absence of a type object equal Revit's, on 3 of 3.fix(ifc): the stringers of a multistory stair's copy keep their origi…
fix(ifc): a file whose multistory groups need no copy and leave nothi…
perf(ifc): the multistory groups are read in one pass while the handl…
docs: the profile, status page, changelog fragment and RE-463 say a m…
fix(ifc): a copy of a multistory stair's stair, flight, landing or ra…
feat(ifc): a multistory stair is written once for each storey its gro…
DrunkOnJava commentedon Nov 14, 2026
The rows hold; #1995 is merged as
dc6b4721. The issue stays open for what the copies still are not.On Revit 2024 a multistory stair is now written again for each span between two consecutive Levels of its group's stairs that no set covers, when the span is as high as the stair that ends where it begins. Measure runs of the merged code
9a1cfa41: 43570550993 (unfiltered, scored: gates pass); 43568153235 and 43568156861 (kept exports, timed) at48cbcd04, whose Snowdon export is byte-identical.IfcStair, 6IfcStairFlight, 30IfcMember, 3IfcSlab, 11IfcRailing), 0 after in every class, and 0 the other way.PredefinedType(the 11 railings carry none where Revit writesNOTDEFINED, as their 62 originals do, PredefinedType: Revit's export writes one that rvt-rs leaves none or NOTDEFINED on, on walls, railings, ramps, roofs, proxies, light fixtures, pipe segments and stairs (42 models with a Revit export) #1713), and the 50 with a body of their own are within 1 mm, 50 of 50. The row said no type object; Revit's stringer copies keep theirs (30 of 30), so only the stair, its flights, its landing and its railings go without.GlobalIds are distinct.diagnostics.jsonfiles are byte-identical to main's; the one that moves is Snowdon architectural. (The row said 146 models; the run compares 120 exports.)rac_advanced2024 1.02 and 0.99. The first version read the groups after the saved-graphics pass and inflated the whole file again (1.05 and 1.51, run 43566139741); the merged code reads them once before that pass and keeps no record index (Options::index_records).Why this stays open.
GlobalIdis rvt-rs's own (derived from the original's by the A layered floor's parts take new GlobalIds on every save of a Revit 2027 model (#1829) #1840 rule,MultistoryCopyOfmarks it); no revit-ifc key shape reproduces Revit's (RE-463 section 2).It closes when a second building with a Revit export tests the rule, or a way to read the GlobalIds is found.
fix(ifc): a stair landing of a Revit 2025 to 2027 save gets its landi…
docs: the user guide, README, CONTRIBUTING and ROADMAP say what later…