Skip to content

Nordic LCA office: Revit's export has 44 family instances as IfcSpace (their own Export to IFC As) that rvt-rs writes as proxies #763

Closed

Description

@DrunkOnJava

Split out of #745. Once Global/ElemTable is read with its 32-bit record count (#559), ARK_NordicLCA_Office_Concrete_As-Built.rvt (BIM4LCA / Nordic LCA, Revit 2024, CC BY-SA 4.0, not in CI's corpus) exports 12,989 elements on 10 storeys. @helenkwok measured that export against Revit's own IFC4 export of the same file (comment):

Class rvt-rs (main) Revit's export
Walls 628 607
Columns 278 279
Doors 268 269
Windows 269 269
Curtain walls 220 220
Mullions 10,003 10,003
Slabs 31 63
Spaces 234 308

Floors and rooms are short. The building-permit sibling (same building and Revit build, saved four hours earlier) is the A/B pair to check first: does it show the same gap?

What would close this:

  1. Measure the slab and space sets by Tag against Revit's export on both files, and list which ElementIds are missing.
  2. For the missing ones, find where their records are. They may be in a framing or a partition the current scan does not reach (the as-built file has a single 62 MB Partitions/425, inflating to about 378 MB over 3,635 members).
  3. Fix what the measurement shows, or record a negative. The extra walls (628 against 607) belong in the same comparison.

The files are public (VTT's "BIM files to download" page); corpus/tier2/README.md lists the BIM4LCA files the tests use, with their sha256.

Activity

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

    @DrunkOnJava
    OwnerAuthor

    Measured on main at f7f378c with the new class_sets_vs_ifc scorer in Measure (run 39149337564, -f nordic=true). It runs on both office models and pairs elements by Tag and spaces by GlobalId, against Revit's own IFC4 export of each file.

    Slabs and walls now match exactly on both files:

    • slabs: 63 of 63;
    • walls: 607 of 607 (as-built) and 589 of 589 (permit), with no extra walls;
    • columns: 279 of 279 and 345 of 345.

    Spaces: 234 of Revit's 308 on both files, the same 74 missing. 44 of the 74 are family instances. What the other 30 are is not measured yet:

    Revit's IfcSpace Count Storey in Revit's export
    Turning Free Space:Turning Free Space 1500 mm family instances 42 none
    LongName GFA (7) or GFA 250mm (5), Names 1 to 5, K, P 12 every level
    LongName HEATED NETAREA, Names 1 to 4, 5a, K 6 one per level
    LongName OFFICE (TSTO1 to TSTO11) or BUSINESS SPACE (LIIK1) 12 Level_01 to Level_04
    VOLUME / OFFICE and VOLUME / GARAGE family instances 2 none

    Next: measure the category Revit's export gives each of the 74, and the "Export to IFC As" value of the 44 family instances. A Measure run doing that is in progress. It shows which of the 30 are rooms rvt-rs drops, and whether rvt-rs should export Areas, and family instances set to IfcSpace, as spaces.

    Edited: the first version said none of the 74 is a room. That holds for the 44 family instances only.

  3. changed the title [-]Nordic LCA office as-built (Revit 2024): 31 of Revit's 63 slabs and 234 of its 308 spaces exported[/-] [+]Nordic LCA office: 74 of Revit's 308 IfcSpace, areas and family instances, are not exported as spaces[/+] on Oct 18, 2026
  4. changed the title [-]Nordic LCA office: 74 of Revit's 308 IfcSpace, areas and family instances, are not exported as spaces[/-] [+]Nordic LCA office: 74 of Revit's 308 IfcSpace are not exported as spaces (44 family instances, 30 not yet identified)[/+] on Oct 18, 2026
  5. DrunkOnJava commented on Oct 18, 2026

    @DrunkOnJava
    OwnerAuthor

    All 74 are now identified, on both office files. rvt-rs drops no room: every one of the 234 rooms in Revit's export is in rvt-rs's. The 30 that were open, TSTO1 to TSTO11 and LIIK1 included, are Revit Areas, not rooms.

    How each was measured:

    • probe_global_id_categories (Measure run 39155857614) looks up each IfcSpace of Revit's export by the GlobalId rvt-rs rebuilds for every declared element (RE-48). Revit's export carries no Other.Category.
    • probe_chain_record_categories (run 39157653056) reads the 30 elements' own partition records.
    Revit's IfcSpace Count The element behind it
    Rooms 234 OST_Rooms records, all 234 exported by rvt-rs
    GFA, GFA 250mm, HEATED NETAREA, OFFICE (TSTO1 to TSTO11), BUSINESS SPACE (LIIK1) 30 OST_Areas (−2003200) records
    Turning Free Space family instances 42 Generic Models whose "Export to IFC As" is IfcSpace (#792); rvt-rs writes them as proxies
    VOLUME / OFFICE, VOLUME / GARAGE 2 Mass family instances, also set to IfcSpace

    Why the Areas are missing. Each of the 30 is a 183-byte chain record with the Areas category at +0x12 and a placed-instance placement word. It has no bounding-box frame: the release's marker is not at +0x50. The element-record scan finds records by that marker, so it never sees them. A census of every chain record on the as-built file finds exactly 30 OST_Areas records, all without the marker. The 234 OST_Rooms records all have it. The permit file holds the same 30, each copied in two partitions.

    What remains in this issue:

    1. Areas. Revit's export writes each Area as an IfcSpace, in its level's storey, with the area's number and name. rvt-rs reads no Area at all. That needs the Area record decoded: its level, name and number, and its boundary, which carries no box. Whether rvt-rs should write Areas at all, and under which area schemes, can be settled once their content is read.
    2. Family instances exported as spaces (44). They come with the "Export to IFC As" values in BIM4LCA office: fixture 3095244 is IfcSanitaryTerminal where Revit writes IfcFlowTerminal, and the permit model writes a column Revit's export leaves out #792. Revit leaves them in no storey, which needs looking at before rvt-rs copies it.
  6. changed the title [-]Nordic LCA office: 74 of Revit's 308 IfcSpace are not exported as spaces (44 family instances, 30 not yet identified)[/-] [+]Nordic LCA office: Revit's export has 30 Areas and 44 family instances as IfcSpace that rvt-rs does not write as spaces[/+] on Oct 18, 2026
  7. 47 remaining items

  8. added a commit that references this issue on Oct 20, 2026
    9716389
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:elementspriority:P2type:bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions