Skip to content

CLASS-13: Stair + Railing decoders + IfcStair / IfcRailing emission #93

Closed

Description

@DrunkOnJava

Problem

Stairs and railings — load-bearing for architectural BIM —
are not yet decoded or emitted.

Scope

  • Stair: run type (straight/winder/spiral) + landing + riser/
    tread dimensions -> faceted brep or extruded composites ->
    IFCSTAIR with PredefinedType.
  • Railing: path curve + height + post spacing -> swept solid
    -> IFCRAILING.
  • Per-storey routing.

Acceptance criteria

  • At least 1 IFCSTAIR entity emitted per corpus file with
    stairs.
  • At least 1 IFCRAILING entity emitted per corpus file with
    railings.
  • Diagnostics list any complex stair runs (helical, multi-run)
    that fall back to bounding-box geometry.

Related

  • Per TODO-BLINDSIDE Phase 4 L5B-32/L5B-33

Activity

  1. added
    area:elements
    area:ifc
    area:partitions
    priority:P2
    type:feature
    on May 23, 2026
  2. DrunkOnJava commented on Aug 29, 2026

    @DrunkOnJava
    OwnerAuthor

    Re-baseline 2026-08-29: Same as #92 — backlog only after evidence-backed core class recoveries. No invented Stair/Railing capability.

  3. self-assigned this
    on Aug 30, 2026
  4. DrunkOnJava commented on Sep 23, 2026

    @DrunkOnJava
    OwnerAuthor

    Status, 2026-09-23. The elements in this issue's categories are now recovered from Revit 2024 and 2025 partition element records, typed by their BuiltInCategory and matched element for element against Revit's own IFC exports:

    • ceilings: RE-33, IfcCovering .CEILING.;
    • roofs: feat(elements): export roofs from element records as IfcRoof (#323) #326, IfcRoof;
    • stairs: RE-39, IfcStair aggregating IfcStairFlight, landings and stringers;
    • railings: RE-33, IfcRailing;
    • structural framing: RE-36, IfcBeam;
    • curtain panels and mullions: RE-33, IfcPlate, IfcMember;
    • lighting fixtures and plumbing fixtures: RE-37 and RE-33;
    • specialty equipment: RE-33.

    Each also carries Revit's Family:Type name where it is a family instance (RE-38, RE-42).

    What this issue asks for beyond that is still open: the modelled geometry. Bodies are the element record's bounding box, or the sketched outline for slabs, not a sloped roof extrusion, stair treads, a swept railing, a beam along its curve or a curtain grid. The README's "What rvt-rs reads from real projects" table and docs/status.md have the measurements.

  5. DrunkOnJava commented on Sep 27, 2026

    @DrunkOnJava
    OwnerAuthor

    Milestone review, 2026-09-27: the element-emission criteria here are met on Revit 2024 and 2025 (see the status comment above). One criterion is not: the export diagnostics do not yet say which bodies fall back to the element record's bounding box. Every element carries a BodySource property, but nothing summarises it. That is #409; this issue closes when it lands. Remaining geometry (stair flight kinds, curved beams) is tracked in #357 and the 0.4.0 milestone.

  6. DrunkOnJava commented on Sep 27, 2026

    @DrunkOnJava
    OwnerAuthor

    Acceptance met on main (measured 2026-09-27, Snowdon Towers Architectural, Revit 2024):

    • IfcStair: 27 emitted (Revit's own IFC4 export: 30), with 43 IfcStairFlight parts (Revit: 49). 34 flights are drawn from their run sketch (BodySource partition_stair_run_sketch); the rest are the element record's box.
    • IfcRailing: 131 emitted (Revit: 142).
    • Fallback reporting: since feat(diagnostics): count exported bodies by how they were derived, and the bounding-box stand-ins (#409) #415 the diagnostics sidecar counts every body by how it was derived (body_sources) and totals the bounding-box stand-ins (bounding_box_bodies). Each element's BodySource property names its own, so a stair or run that falls back to its box is listed.

    Stair geometry from treads and risers, and railing sweeps, are tracked in #357.

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

Metadata

Metadata

Assignees

Labels

area:elementsarea:ifcarea:partitionspriority:P2type:feature

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions