Skip to content

BIM4LCA office: fixture 3095244 is IfcSanitaryTerminal where Revit writes IfcFlowTerminal, and the permit model writes a column Revit's export leaves out #792

Open

Description

@DrunkOnJava

Measured by the class_sets_vs_ifc scorer in Measure (run 39149337564, main at f7f378c, -f nordic=true) on both BIM4LCA office models, against Revit's own IFC4 export of each. Elements are paired by Tag. The counts are the same on the as-built and the building-permit file.

Revit's class rvt-rs's class Elements
IfcCurtainWall IfcShadingDevice 124
IfcWasteTerminal IfcSanitaryTerminal 78
IfcElectricAppliance IfcBuildingElementProxy 51
IfcFireSuppressionTerminal IfcBuildingElementProxy 40
IfcSanitaryTerminal IfcFurniture 15
IfcBuildingElementProxy IfcCovering 9
IfcStair IfcBuildingElementProxy 2
IfcDoor IfcPlate 1
IfcRampFlight IfcRamp 1
IfcAirTerminal IfcBuildingElementProxy 1
IfcFlowTerminal IfcSanitaryTerminal 1

That is 323 elements. A further 42 Turning Free Space family instances are IfcSpace in Revit's export and IfcBuildingElementProxy in rvt-rs's, with the same ElementIds. #763 covers the space side.

The curtain walls (measured, run 39153127128). The value is not misattributed. RE-45's probe finds an "Export to IFC As" of IfcShadingDevice in each of the 124 curtain walls' own data, on a Walls record. Revit's export ignores it because of the exporter version:

  • Revit 2024's exporter (revit-ifc IFC_v24.1.0 to IFC_v24.3.40): CurtainSystemExporter.ExportBase creates every curtain wall as IfcCurtainWall and never reads the value. That matches the office export, 124 of 124 on both files.
  • From IFC_v25.2.0 (Revit 2025) through 26.x: ExportBase takes the entity from the same lookup as every other element, so a curtain wall set to IfcShadingDevice would be exported as one.
  • On floors, Revit 2024 does follow the value: Core Interior's 20 floors set to IfcShadingDevice are IfcShadingDevice in Revit's export.

The same run, on the other mismatches:

  • Fire suppression terminals: all 40 carry their own IfcFireSuppressionTerminal, which Revit followed and rvt-rs does not act on.
  • Family instances exported as spaces: the 44 (42 Turning Free Space, 2 VOLUME) carry IfcSpace, and Revit made them spaces.
  • Wall sweeps: 9 carry IfcCovering, which rvt-rs follows and Revit's export did not (it wrote proxies).
  • Type values: 2 types carry IfcWasteTerminalType (Revit types 36 waste terminals by them), 5 carry IfcElectricApplianceType (20 electric appliances) and 9 carry IfcSanitaryTerminalType (70 sanitary terminals). 16 electric appliances also carry their own IfcElectricAppliance. How many of the mismatched elements these values cover is not counted yet.
  • Not measured: Revit's office export carries no Other.Category set and no export-value property, so these counts come from rvt-rs's reading of the file alone.

What would close this:

  1. Measure, for each mismatched element, Revit's own category and any "Export to IFC As" value Revit's export carries, against rvt-rs's. Measured, above.
  2. A curtain wall in a 2024 file stays IfcCurtainWall whatever its value says. Then honour the values the exports prove, mapping what the measurement shows. Check each new override value or category mapping against these two exports, which CI's corpus now holds.
  3. category_map::EXPORT_OVERRIDE_TARGETS says an unrecognised override value "is reported as an unhonoured override", but nothing reports it. Report it in the diagnostics, or correct the comment.

Edited: the first version said the curtain walls' value was most likely attributed to the wrong element. Run 39153127128 shows it is the curtain walls' own, and that Revit 2024's exporter ignores it.

Activity

  1. added
    area:ifc
    priority:P2
    type:bug
    on Oct 18, 2026
  2. DrunkOnJava commented on Oct 18, 2026

    @DrunkOnJava
    OwnerAuthor

    #796 landed the curtain walls (RE-188).

    Fixed: a curtain wall in a Revit 2024 file is IfcCurtainWall whatever its "Export to IFC As" says, as Revit 2024's exporter writes it (revit-ifc 24.1.0 to 24.3.40). On both office files that takes the 124 shading devices back to curtain walls, and all 220 now match Revit's export. Core Interior's 20 floor shading devices, Einhoven and the RE1 models are unchanged.

    Decided: in 2025 and 2026 files a curtain wall keeps following the value, as the exporter does from 25.2.0. That is read from source and not yet measured on a Revit export.

    What is left here is now listed by the export itself. The diagnostics warn with every value the export does not apply. On the as-built file, 381 elements carry one:

    Value On Elements
    IfcShadingDevice CurtainWall 124 (2024 rule: correct as it is)
    IfcWasteTerminal PlumbingFixture 78
    IfcElectricAppliance ElectricalEquipment 51
    IfcSpace GenericModel 42
    IfcFireSuppressionTerminal SpecialtyEquipment 40
    IfcWall CurtainWall 21 (already written as curtain walls)
    IfcSanitaryTerminal Casework 15
    five smaller groups 10

    The counts match the class mismatches in the table above one for one: 78, 51, 40 and 15. They have not been paired element by element yet; that is part of acting on each value. Next, the writer acts on these values one at a time, each checked against both office exports with its predefined type and type object.

    Two items stay open:

  3. 28 remaining items

  4. changed the title [-]Nordic LCA office: 323 elements exported as a different IFC class than Revit's export[/-] [+]BIM4LCA office: fixture 3095244 is IfcSanitaryTerminal where Revit writes IfcFlowTerminal, and the permit model writes a column Revit's export leaves out[/+] on Oct 24, 2026
  5. DrunkOnJava commented on Oct 24, 2026

    @DrunkOnJava
    OwnerAuthor

    Measured the two remaining elements against their peers on both office files. Measure 40141814474, branch re/792-odd-elements, examples/probe_792_class_peers.rs with tools/re/class_peers_vs_ifc.py. The probe compares 168 scalar fields of each element's native record, its InstanceInfo, its type and the type's family, plus a deep diff of its whole graph against a peer.

    • Plumbing fixture 3095244 (Revit IfcFlowTerminal, its 144 peers IfcSanitaryTerminal): no field sets it apart but identifiers. It is the only instance of its type, 3435912 (m_masterSymbolId, InstanceInfo.m_symbolId), and none of that type's or its family's scalar fields takes a value no peer's type or family has. Its graph differs from a peer's only in placement (m_RefDir, m_instOrigin, m_Trf), m_bVertical/m_workPlaneBased (values other peers share) and its parameter count.
    • Column 1927742 on the permit file (not in Revit's export, its 345 peers in it): no field among the 168 takes a value no peer has.

    So neither is explained by what its own records, its type or its family hold. The likely causes sit outside them: the export view's visibility, filters or phase, or, for the fixture, the family's own document. Revit's exporter maps a category to a class unless something overrides it, and the override is not in the fixture's records. I'm leaving both written as they are, failing open on a single element each, until a signal turns up. The branch stays for that.

  6. DrunkOnJava commented on Oct 31, 2026

    @DrunkOnJava
    OwnerAuthor

    A W7 consequence of the class difference, measured on main at f9f71e68 (Measure 41215480967 with --revit-set-placement, and 41213779326): rvt-rs writes Pset_SanitaryTerminalTypeCommon.Reference on all 145 sanitary terminals of the office, as built and at permit. Revit's export writes it on 144; fixture 3095244 is its IfcFlowTerminal, which has no such set. That is the one property value rvt-rs writes on an object Revit's export writes and Revit does not. The permit model's extra column carries the other values Revit does not write: Pset_ColumnCommon IsExternal, LoadBearing and Reference, and Pset_ReinforcementBarPitchOfColumn.Reference. Settling the fixture's class settles both; #1230 states this on the criteria page.

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:P2type:bug

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions