Skip to content

Roofs Revit's export decomposes into IfcSlab .ROOF. parts (7 of Snowdon's 20) are written whole #323

Open

Description

@DrunkOnJava

With RE-35's enclosing-record ids, stairs and roofs on Snowdon Towers Architectural are fully attributable. Every placed instance's id is in Revit's IFC4 export under the matching entity:

category placed instances in Revit's IFC4 export as
OST_Stairs 27 IfcStair (half-turn 14, straight 8, spiral 2, quarter-turn 1, not defined 2)
OST_StairsRuns 43 IfcStairFlight (straight 35, spiral 2, not defined 6)
OST_StairsLandings 17 IfcSlab .LANDING.
stringers (−2000123) 171 IfcMember .STRINGER. (170; one omitted)
OST_Roofs 20 IfcRoof (12, with 7 IfcSlab .ROOF. parts)

They were left out of RE-37 because Revit exports them as aggregates: an IfcStair decomposes into its flights, landings and stringers, and an IfcRoof into its slabs. Exporting a bounding-box body for the stair and for each part would double the volume.

To do

  • Export stairs and roofs as aggregates: IfcRelAggregates from the stair to its runs, landings and stringers, and from the roof to its parts. The container itself carries no body.
  • Find the part-to-stair link. The run and landing records' reference lists (or containers) should name their stair. Measure it against the export's IfcRelAggregates.
  • Keep the PredefinedType unset unless a byte gives it. The export's stair types vary per instance.

Refs RE-37 §3.

Activity

  1. DrunkOnJava commented on Sep 23, 2026

    @DrunkOnJava
    OwnerAuthor

    Status after #325 and #326:

    Still open here:

    • Revit decomposes 7 of the 20 roofs into a same-Tag IfcSlab .ROOF. part. No decoded byte says which roofs take that form, so rvt-rs does not reproduce the decomposition.
    • Railings stay standalone: Revit aggregates 65 of the 70 that name a stair, and nothing read so far tells the other five apart.
    • Stair and flight PredefinedTypes stay unset.
  2. added
    area:elements
    area:ifc
    priority:P2
    type:feature
    on Sep 30, 2026
  3. 70 remaining items

  4. DrunkOnJava commented on Nov 15, 2026

    @DrunkOnJava
    OwnerAuthor

    Which of Snowdon's roofs Revit writes as a container, and why the file may not say. Read locally from Revit's IFC4 export of Snowdon Towers Architectural (IfcOpenShell 0.9.0.post1), and from revit-ifc's roof exporter (CLEANROOM.md source 5, read and cited, not copied).

    • Revit's export: of the 20 IfcRoof, 7 are bodiless with one IfcSlab .ROOF. part of the same Tag: 759489, 882818, 1916295, 1916467, 1916546, 1916562 and 1916578, all of type Basic Roof:Insulation on Metal Deck - EPDM. The other 13 carry their own body:
      • 10 are IfcPolygonalFaceSet: the TPO 5" rigid insulation roofs, 964559 among them, plus EPDM 1916596 and Concrete 6" 2112673.
      • 3 are IfcExtrudedAreaSolid: Concrete 6" 754197, 754672 and 754785.
    • Type does not decide it: an eighth EPDM roof, 1916596, has its own body.
    • What revit-ifc does (Source/Revit.IFC.Export/Exporter/RoofExporter.cs):
      • For a roof exported as IfcRoof, Export first tries ExportRoofOrFloorAsContainer. That supports only ExtrusionRoof, FootPrintRoof and Floor.
      • It needs ExporterIFCUtils.ComputeSubcomponents, a closed Revit API call, to return subcomponents. A floor with one is not made a container; a roof with one is.
      • When that returns nothing or throws, ExportRoof runs instead. In IFC4, with nothing yet in the product wrapper, that exports the roof as a single geometry: its body on the roof, no slab.

    So the split is Revit's own subcomponent computation. What would close this is a signal in the roof's records that tells the 7 from the 13: its class (FootPrintRoof or ExtrusionRoof), shape edits, variable-thickness layers, slope arrows. Measuring that against these 20 is the next step. Nothing is written.

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:elementsarea:ifcpriority:P2type:feature

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions