Skip to content

Stairs: Revit's export aggregates a stair's railings under it, rvt-rs writes them standalone, so the stair's body is short by the railings (R2025 models 13 to 16) #1624

Closed

Description

@DrunkOnJava

Revit's export aggregates the railings hosted on a stair under the stair; rvt-rs writes them as standalone elements, so the stair's body in rvt-rs lacks them and stair_bodies_vs_ifc.py reports the stair as too short.

What is measured. Puzzbobb's Revit 2025 models 13 to 16 with Revit's own IFC4 exports (Apache-2.0, research/r2025-models.tsv). In Revit's export each IfcStair has no body of its own and aggregates (IfcRelAggregates) its run, its stringers and its two railings. The IfcStair's body is the sum of them, and each sum reconciles to the digit:

Model Revit's stair (flight, stringers, railings, ft3) Revit's top rvt-rs's stair (flight, stringers) rvt-rs's top
13_Rooms_Stairs (stair 12599) 4.4903 + 2 x 1.7854 + 2 x 0.3605 = 8.7821 8.0880 8.0611 5.3458
14_Rooms_Stairs_endwithriserOFF (12599) 4.4289 + 2 x 1.7854 + 2 x 0.3540 = 8.7077 7.5174 7.9997 5.3458
15_Rooms_Stairs_NoRisers (12732) 4.4496 + 2 x 2.0182 + 2 x 0.4055 = 9.2970 8.6586 8.4861 5.9164
16_Rooms_Stairs_Monolithic (12909) 14.7488 + 2 x 0.2704 = 15.2896 6.9468 14.7488 3.4235

The railings stand 3.229 ft above the stair's base to 8.088 ft (model 13), so the missing top is the railings', 2.74 ft on 13, 14 and 15 and 3.52 ft on 16. rvt-rs writes the flight and the stringers as the stair's parts (RE-65) and the two IfcRailing as separate elements. The stringers are Revit's: 10 vertices, 0 to 5.3458 ft, 1.7854 ft3 each, from their saved meshes.

Why it showed only now. Before the saved-mesh default (#1610) the stringers were record boxes 13.1234 ft tall, which put rvt-rs's stair body at 36.13 ft3 and 0 to 13.1234 ft and hid the railings; Measure run 42660463442 has that figure and run 42664209852 the new one. The aggregates scorer counts only curtain-wall parts (IfcMember, IfcPlate, IfcCurtainWall), so it never listed the railings.

To do.

  1. Count how many railings Revit's exports of Snowdon Towers (Revit 2024) and the BIM4LCA office aggregate under a stair, and whether any railing on a stair is not.
  2. Join a railing whose reference list names exactly one exported stair to it, as attach_aggregate_wholes does for runs, landings and stringers, if Revit's exports agree (a value on which Revit's exporters disagree is left out).
  3. Extend aggregates_vs_ifc.py to IfcRailing.

Done when: stair_bodies_vs_ifc.py finds the stair's volume and top equal on models 13 to 16, or this issue records why a railing stays out of its stair.

Activity

  1. added
    area:ifc
    priority:P3
    type:bug
    on Nov 9, 2026
  2. DrunkOnJava commented on Nov 10, 2026

    @DrunkOnJava
    OwnerAuthor

    The aggregation landed in #1626: a railing whose record names a stair (m_stairsId) and no component of it (m_stairsComponentId) is now a part of that stair's IfcStair, as in Revit's export. Measured against Revit's exports (Measure 42688171578, 118 models): the BIM4LCA office's 25 railings that Revit aggregates are all "same whole" (none were on main), the R2025 stair models 13 to 17 2 of 2 each, 0 census regressions, and the one railing Revit leaves out (Tag 2598405, it sits on the stair's run) stays standalone, as in Revit's export (RE-390).

    What is not fixed, so this stays open: the stair's volume as the sum of its parts is now larger than Revit's, because the railings in the sum are record boxes (2 to 127 times Revit's on the office's 13 stairs that hold railings; the extent now matches). That is #1635. The 4 railings Revit aggregates under an IfcRamp are not aggregated either.

  3. DrunkOnJava commented on Nov 10, 2026

    @DrunkOnJava
    OwnerAuthor

    Closing: the done-when holds since #1652 (fcdc9de, RE-397), measured by stair_bodies_vs_ifc.py in the unfiltered Measure 42884022203 (base main before the change, head with it).

    Model IfcStair volume rvt-rs, before after Revit's z top, both
    13_Rooms_Stairs (12599) 25.915554 8.782099 8.782094 8.0880
    14_Rooms_Stairs_endwithriserOFF (12599) 23.757515 8.707642 8.707639 7.5174
    15_Rooms_Stairs_NoRisers (12732) 30.930974 9.297138 9.297133 8.6586
    16_Rooms_Stairs_Monolithic (12909) 24.994681 15.289523 15.289523 6.9468

    The stair's railings are its aggregated parts (#1626) and each railing now comes from its saved mesh instead of its record box (RE-397: the instances the walk skipped are read, and the flip control is no surface). Model 15 matches by the scorer's bar of the nearest vertex and the volume together; on the other three every vertex of Revit's stair body lies within 3e-6 ft of rvt-rs's surface, and the flight vertex that is 0.033, 0.033 and 0.579 ft from rvt-rs's nearest on 13, 14 and 16 is the flight's, unchanged by this and not the railings' (it is not part of this done-when). The housing's stairs and the office's are separate: the office's stair railings (22 KJO-1) keep their boxes, which #1635 stays open for.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:ifcpriority:P3type:bug

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions