You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Roofs Revit's export decomposes into IfcSlab .ROOF. parts (7 of Snowdon's 20) are written whole #323
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.
Revit decomposes 7 of the 20 roofs into a same-TagIfcSlab.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.
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.
Activity
feat(ifc): export stairs as aggregates of their runs, landings and st…
feat(elements): export roofs from element records as IfcRoof (#323) (#…
DrunkOnJava commentedon Sep 23, 2026
Status after #325 and #326:
IfcStairaggregates of their runs, landings and stringers (RE-39, feat(ifc): export stairs as aggregates of their runs, landings and stringers (#323) (RE-39) #325). On Snowdon Towers every aggregate relation rvt-rs writes is one Revit's export has.IfcRoofeach with the record box (feat(elements): export roofs from element records as IfcRoof (#323) #326). All 20 Snowdon roofs areIfcRoofTags in Revit's export.Still open here:
TagIfcSlab.ROOF.part. No decoded byte says which roofs take that form, so rvt-rs does not reproduce the decomposition.PredefinedTypes stay unset.feat(elements): stairs and flights carry Pset_StairCommon riser count…
feat(elements): name stairs and their runs, landings and supports as …
feat(ifc): export doors and windows whose type draws no geometry as t…
70 remaining items
fix(ifc): a part of an aggregate is not counted as written outside an…
DrunkOnJava commentedon Nov 15, 2026
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).
IfcRoof, 7 are bodiless with oneIfcSlab.ROOF.part of the same Tag: 759489, 882818, 1916295, 1916467, 1916546, 1916562 and 1916578, all of typeBasic Roof:Insulation on Metal Deck - EPDM. The other 13 carry their own body:IfcPolygonalFaceSet: the TPO 5" rigid insulation roofs, 964559 among them, plus EPDM 1916596 and Concrete 6" 2112673.IfcExtrudedAreaSolid: Concrete 6" 754197, 754672 and 754785.Source/Revit.IFC.Export/Exporter/RoofExporter.cs):IfcRoof,Exportfirst triesExportRoofOrFloorAsContainer. That supports onlyExtrusionRoof,FootPrintRoofandFloor.ExporterIFCUtils.ComputeSubcomponents, a closed Revit API call, to return subcomponents. A floor with one is not made a container; a roof with one is.ExportRoofruns 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 (
FootPrintRooforExtrusionRoof), shape edits, variable-thickness layers, slope arrows. Measuring that against these 20 is the next step. Nothing is written.