Skip to content

NumberOfStoreys: Revit's exporter before IFC 26.1 counts only storeys that hold an element #1097

Closed

Description

@DrunkOnJava

Pset_BuildingCommon.NumberOfStoreys is counted different on 20 of puzzbobb's 23 Revit 2025 models in the W7 property census (tools/re/psets_vs_ifc.py, Measure run 40942112911 at main af50068), and on 00_Blank as well once #1086 gives it its storey. rvt-rs writes the number of storeys it exports. Revit's exporter has written two different values over time.

What Revit's exporter writes

In Autodesk's open-source exporter revit-ifc, NumberOfStoreysCalculator (Source/Revit.IFC.Export/Exporter/PropertySet/Calculators/NumberOfStoreysCalculator.cs) took the value from ExporterIFCUtils.GetNumBuildingStoreys until the "IFC 26.1 for Revit 2026" commit (ef15008e2e, 2025-04-24). Since that commit it is the number of entries in the exporter's level cache. Measured on every reference export that writes the property (storeys in the export, storeys holding a contained element, Revit's value):

Export Exporter Storeys Holding an element NumberOfStoreys
R2025 00_Blank IFC 25.0.2.419 1 0 0
R2025 01_Walls IFC 25.0.2.419 1 1 1
R2025 02 to 17 (19 models) IFC 25.0.2.419 4 2 2
R2025 18_WallJoins IFC 25.0.2.419 4 1 1
teste_export_2025 (holdout) IFC 25.4.3.0 2 1 1
Snowdon Towers Architectural (local) IFC 24.0.20.20 18 18 18
BIMcollab STR 2015 (not named) 5 5 5
RE1 Architecture, Electrical, Mechanical, Plumbing IFC 26.2.0.20 2 1 2
modelo_bim (holdout) IFC 26.1.0.23 4 3 4

Up to IFC 26.0 the value is the number of storeys holding an element (25 of 25 exports). From IFC 26.1 it is the number of storeys (5 of 5). A .rvt does not record which exporter will export it, and a Revit 2025 file exported from Revit 2026 gets the newer value (RE1). The IFC4 definition is the number of storeys in the building.

Proposed

Keep writing the storey count: it is the IFC4 definition and what every exporter since 26.1 writes, exact on RE1 and the BIM4LCA office. In the census, count NumberOfStoreys apart where the reference export's exporter is older than IFC 26.1 and its value is the number of storeys holding an element rather than the number of storeys, with that reason stated. That is the same treatment as the values Revit's export is known to write wrongly (RE-235 §5), recorded in a dated RE report.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:ifc

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions