Skip to content

fix(ifc): Revit 2023's ArcWall pattern no longer writes a curtain wall's panels and grid lines as walls, and Einhoven exports its curtain wall of 24 panels on its one Level (RE-440) - #1809

Merged
DrunkOnJava merged 9 commits into
DrunkOnJava:mainfrom
puzzbobb:fix-einhoven-2023
Nov 13, 2026

Conversation

@puzzbobb

Copy link
Copy Markdown
Contributor

Summary

On Revit_IFC5_Einhoven the Revit 2023 ArcWall byte pattern (RE-14.3, RE-15) matches 24 records, and none is a wall. The native records of their ElementIds are 15 curtain panels and 7 curtain grid lines, and 2 matches have no ElementId. Taken as walls, they were written as 24 IfcWalls with a placeholder thickness. They also hid 15 of the curtain wall's panels, made three extra storeys from the grid's rows, and caused the file's one Level to be refused. A match is now kept only where its native record is a wall. A 2023 wall whose type is a curtain wall type is an IfcCurtainWall aggregating its panels. A lone 2015 to 2023 Level is kept where the native records hold no other. Einhoven exports 1 wall, 1 curtain wall of 24 panels and 2 windows on Level 1, and four of the seven warnings the web viewer showed are gone.

Motivation

The web viewer shows seven warnings on Einhoven:

  • "24 ArcWall records lack recovered thickness";
  • 13 elements with no storey;
  • two storey names from partition strings;
  • two storeys with elevation labels;
  • the 2023 coverage summary;
  • the suppressed candidates;
  • the unit warning (RE-439).

The first four come from one misreading. The matches' ElementIds all belong to curtain wall 7187: its CGridDivideFaceGStep.m_cellMap names 15 of them as the panels of its cells, and the other 7 are its CurtainGridLines. The four "base elevations" that made storeys are the grid's four rows. The partition Level reader refused a lone 2015 to 2023 Level on exactly that evidence ("Einhoven decodes one Level while its walls stand at two or more base elevations").

Changes

  • src/research/partition_arc_walls.rs: compute_partition_arc_walls keeps a match only where the native record of its ElementId is an ArcWall or SWall (native_walls_only). Only the classes are read, not the graphs. A match with no ElementId, or whose record cannot be read, is left out. No public type changes.
  • src/research/partition_level_records.rs: on 2015 to 2023 a single recovered Level is the storey set when the file's native Level records are that Level alone (native_level_ids). 2024 to 2027 keep their id-scan rule.
  • src/research/partition_schema_mvp/records_2023.rs and src/research/native_walls.rs:
    • A 2023 wall whose native type (m_WallAttributesId, wall_type_ids) is a NewCurtainWallType is a curtain wall, named by that type (curtain_wall_type_names).
    • Each panel or mullion whose reference list names exactly one curtain wall is its part, as on 2024 (RE-46).
  • src/ifc/mod.rs: geometry_gap_skipped_items no longer counts a whole whose aggregated parts carry its body as missing dimensions or profile. It is already counted in building_elements_carried_by_parts. This was a false gap on every bodiless curtain wall, RE1 Architecture's included.
  • Tests that pinned the matches as walls are restated for the model the records hold:
    • arc_wall_corpus: the shared scan keeps no match on Einhoven.
    • iter_elements_typed: Einhoven's elements are wall 2808, curtain wall 7187, the 24 cells' panels and 2 windows, and no Level element comes from wall elevations.
    • walker_to_ifc_integration: the IFC holds 1 IfcWall, 1 IfcCurtainWall aggregating the 24 IfcPlates, and 1 storey with every element on it.
    • export_decisions_counts: RE1's and Einhoven's required reasons lose the gaps that are gone.
    • tests/fixtures/project-counts/revit-ifc5-einhoven.json: walls 26 → 1, elements with geometry 37 → 27.
  • docs/status.md, docs/format-reconnaissance.md (addendum), docs/export-diagnostics.md, docs/support-matrix.json, reports/element-framing/RE-440-einhoven-curtain-wall.md, probes/examples/probe_re440_curtain_wall_records.rs, changelog.d/fixed/einhoven-curtain-wall.md.

Testing

Unit tests are banned in this repository: do not add them. Show the change working end to end on real files instead.

  • tools/check-local.sh passes (fmt, clippy, rustdoc, build, real-file / CLI / contract checks)
    • tools/check-local.sh --corpus on 81a115d0: all requested gates passed, integration suite 302 passed, 0 failed.
  • Verified end to end on real Revit files: the command, the files (and their licence), and the measured result against Revit's own export are in the PR body, with the script or probe that reproduces it
    • cargo run --profile ci -p rvt-probes --example probe_re440_curtain_wall_records -- FILE... on the 2023 files: Einhoven (MIT, magnetar-io/revit-test-datasets), Autodesk's rac_basic and rst_basic (research/autodesk-sample-projects.tsv) and the phi-ag/rvt 2023 sample family.
      • Einhoven: 24 matches, of classes FamilyInstance 15, CurtainGridLine 7, none 2, wall 0. One Level (1905). Curtain wall 7187, type 1937 Curtain Wall 1, 24 cells each holding a FamilyInstance.
      • rac_basic: no match, 7 Levels, 9 curtain walls of type SH_Curtain wall.
      • rst_basic: no match, 9 Levels.
      • The family: no match.
    • No Revit export of Einhoven exists. The witness is the file's own records: the class of each matched id, the curtain wall's cell map and its type's class. For rac_basic's names, the witness is the same model saved by 2024 and 2025, whose export gives the same 9 ElementIds Curtain Wall:SH_Curtain wall.
    • rvt-ifc --profile ci of main (3abb42f0) and of this branch on every local 2015 to 2023 file (30): 28 are identical apart from FILE_NAME and IFCOWNERHISTORY.
      • Einhoven changes as in the table below.
      • 2023 rac_basic changes only in its 9 curtain walls' names and type properties (Curtain Wall:p on 4 and none on 5 → Curtain Wall:SH_Curtain wall on 9) and in losing the false missing-body gap on them.
      • RE1 Architecture (2025): the IFC is identical, and the diagnostics lose the false gap on its curtain wall.
  • If this touches the IFC exporter: the witness verdicts replay (see CONTRIBUTING.md) or the changed observations are refreshed in this PR
    • The witness verdict tests (witness_verdict, witness_registry) pass in the gate. No committed observation covers Einhoven's element counts; its project-count fixture is a decoder baseline and is updated here.
  • If this is a performance change: reran tools/bench.sh and attached the before / after
    • N/A: not a performance change. The added reads are the classes of the matched ids, of the Level records and of the walls' types: one native pass each, on 2015 to 2023 only.

Audit-honesty checklist

  • README / docs reflect the current state after this PR — no claims of features that are not actually shipped in this PR
    • docs/mcp.md quotes "23 of Einhoven's 37 rows" from Measure run 41986491801. Those were the placeholder-named elements, mostly the pattern matches, and the figure will change on the next Measure run. It is left as the run measured it.
  • A user-visible change has its entry as a fragment under changelog.d/<section>/ (see changelog.d/README.md), not in CHANGELOG.md
    • changelog.d/fixed/einhoven-curtain-wall.md; tools/release/changelog.py check passes.
  • If a limitation was resolved, the "Known limitations" / "What works today" section in the relevant docs is updated
    • docs/status.md: RE-440 entry, and the ArcWall and storey sentences.
  • If a new limitation was introduced, it is documented in the PR body and in-code
    • No new limitation. The pattern stays in place for a 2023 file whose matches are walls, though no local file has one.
  • Commit messages describe WHAT changed and WHY, not "fix things" or "updates"
  • No emojis in code, docs, or commit messages
  • No private paths, personal email addresses, or internal jargon in committed files
  • If this is a reverse-engineering finding: a reproducible probe under probes/examples/ and a dated addendum to docs/format-reconnaissance.md are included

Legal and contribution hygiene

  • I agree this work is licensable under Apache-2.0 (see CONTRIBUTING.md)
  • This PR contains no Autodesk proprietary source, decompiled internals, or NDA'd SDK content (see CLEANROOM.md)
    • The class and field names come from the file's own schema (Formats/Latest). The values are bytes of the files.
  • Any new test fixtures use synthetic values (testuser, 111111, FY-20XX, etc.) and contain no real-world PII
    • No fixtures added. The Einhoven project-count fixture's two decoder baselines are updated.

Breaking changes

None. No public type or signature changes; native_walls::wall_type_ids is a new public function.

The output changes on Revit 2023 only:

  • Einhoven's elements and storeys change as described above.
  • 2023 rac_basic's curtain wall names change.
  • A bodiless curtain wall or stair no longer appears in unsupported_geometry_profile or unsupported_geometry_missing_dimensions.

Screenshots or output samples

Einhoven:

main this PR
IfcWall 26 (24 pattern matches, 2808, 7187) 1 (2808)
IfcCurtainWall 0 1, Curtain Wall:Curtain Wall 1:7187, aggregating 24 panels
IfcPlate 9 24, the panels of the 24 cells
IfcWindow 2 2
storeys Level 1, Elevation 6.562 ft, Elevation 13.123 ft, Roof Level 1
elements on a storey 24 of 37 28 of 28
warnings 7 4 (2023 summary, units, storey binding note, suppressed candidates)

Related issues

Refs #30 (the Einhoven decoder baselines). No issue was filed; the warnings were seen in the web viewer.

…l's panels and grid lines as walls, and Einhoven exports its curtain wall of 24 panels on its one Level (RE-440)

On Revit_IFC5_Einhoven the standard ArcWall byte pattern (RE-14.3, RE-15)
matches 24 records in Partitions/5. The native records of the ElementIds
their trailers give are 15 curtain panels (FamilyInstance, type 8570) and
7 CurtainGridLines; 2 matches have no ElementId; none is an ArcWall or
SWall. The pattern matches nothing on any other local file.

Taken as walls, the matches were written as 24 IfcWalls with a placeholder
thickness, shadowed the 15 panels the 2023 element records read under the
same ElementIds, and made storeys from the grid's four rows, which in turn
made the partition Level reader refuse the file's one Level (1905,
"Level 1") on 2015 to 2023.

- partition_arc_walls: a match is kept only where the native record of its
  ElementId is an ArcWall or SWall; one with no ElementId, or whose record
  cannot be read, is left out.
- partition_level_records: on 2015 to 2023 a single recovered Level is the
  storey set when the file's native Level records are that Level alone.
- records_2023: a 2023 wall whose native type (m_WallAttributesId) is a
  NewCurtainWallType is a curtain wall named by that type
  (native_walls::wall_type_ids), and each panel or mullion whose reference
  list names exactly one curtain wall is its part, as on 2024 (RE-46).
- geometry_gap_skipped_items: a whole whose aggregated parts carry its body
  is not counted as missing dimensions or profile; it was already counted in
  building_elements_carried_by_parts.

Einhoven now exports 1 IfcWall, 1 IfcCurtainWall aggregating the 24 panels
of its grid's 24 cells, and 2 IfcWindows, all on Level 1, where it exported
26 IfcWalls, 9 IfcPlates and 4 storeys; four of its seven warnings are gone.
Of the other 29 local 2015 to 2023 files, 28 export identically; 2023
rac_basic's 9 curtain walls take the name their 2024 and 2025 saves give
them ("SH_Curtain wall", was "p" on 4 and none on 5), and it and RE1
Architecture lose a false missing-body gap on their curtain walls.

The integration tests that pinned the matches as walls are restated for the
model the records hold, and the Einhoven project-count fixture follows.
Report reports/element-framing/RE-440-einhoven-curtain-wall.md; probe
probe_re440_curtain_wall_records.

@rvt-rs-review rvt-rs-review Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for this one: the finding that Einhoven's 24 "ArcWall" matches are 15 curtain panels and 7 grid lines (not walls), and that the wall's own type says it is a curtain wall, is a clear improvement, and I read it against the diff at 81a115d. Changes I need before it lands:

CI is red on three jobs, all from Einhoven's new content

  • tools/ci/validate-real-ifc.py:153 still asserts IfcWall is at least 10 on Einhoven; the export now has 1 IfcWall, 1 IfcCurtainWall, 24 IfcPlate and 2 IfcWindow (the job log shows exactly that). Move the pin to what Revit's own export of the file holds, and say so in its comment.
  • Viewer browser tests 1/3 and 3/3 pin Einhoven's element tree (an element of the tree that rvt-elements prints no parameters for, and two text expectations). They need the new tree's values, each with the source of its number (the viewer test's pins for Einhoven follow the project-count fixture you already moved).
  • RE1-Electrical.rvt: No such file follows in the same job; please check it clears once the first failure does.

Code

  1. attach_curtain_walls_2023 calls native_walls::wall_type_ids and curtain_wall_type_names, both with Options::default() and no graph_fields. That is two more full-graph passes over every 2023 file, over the same wall records read_wall_records reads moments later through WallReads with the WALL_READ_FIELDS projection (#1335). WallReads already caches m_WallAttributesId, so the wall types should come from it, and the curtain-type names from one projected read of the types.
  2. Those two functions take Options::default().releases, which is 2023..=2027, but attach_curtain_walls_2023 runs for every release that reaches recover_2023_records. On a 2015 to 2022 file extract_graphs errors and unwrap_or_default() hides it, so the rule is 2023-only by construction while the doc comment and the report say nothing of it. Either gate the call on the release the rule was measured on, or pass NATIVE_RELEASES like the other wall readers and say which releases the one file covers.
  3. In geometry_gap_skipped_items, carried_by_parts is true for any element that has an Aggregate whole, not "a part of it carries a body", and it applies to every release and class (stairs too). A whole whose parts have no body is no longer counted anywhere, which is why RE1 Architecture's unsupported_geometry_missing_dimensions and _profile disappear from tests/export_decisions_counts.rs. Narrow it to "some part has a body shape" and check that RE1 keeps those two reasons if it should.
  4. A wall becomes a curtain wall only when curtain_wall_type_names returned a SymbolInfo.m_name for its type; on 2024 the class does not need a name. A NewCurtainWallType with no readable name stays an IfcWall. Make the class independent of the name.
  5. arc_wall_corpus.rs and iter_elements_typed.rs now assert only that nothing is kept on Einhoven, so the half of native_walls_only that keeps a match whose record is a real SWall or ArcWall has no witness left, and elem_table::link_arcwall_element_ids has no test user. The report says no local file has a real 2023 ArcWall match: say in the report what keeps that half from being wrong, or keep a check on a file that exercises it.
  6. A curtain wall classified now passes through bind_opening_hosts, so its doors and windows lose their host as on 2024 (#439). That is likely right, but it is a change to the export that the report does not list.

Smaller

  • An extract_graphs error on one ambiguous record empties the whole scan in partition_arc_walls.rs; ids-less matches are always dropped, so the ArcWall-{partition}-{offset} name in ifc/mod.rs can no longer be produced.
  • The description says 765 added and 293 removed; git diff --shortstat gives 770 and 298.

Once the code is settled I will run an unfiltered Measure against main on the final head, since this moves an export. I am happy to push the pin and test updates to your branch if you would rather not touch them (edits are allowed); say so here.

# Conflicts:
#	docs/format-reconnaissance.md
#	docs/status.md
…23 curtain wall rule gated to 2023 and independent of a type name, one carried-by-parts rule, the Einhoven validation pins (DrunkOnJava#1809)

- attach_curtain_walls_2023 takes the walls' types from WallReads (the read
  read_wall_records shares, DrunkOnJava#1335) instead of a second full-graph pass, and
  reads the types' records on NATIVE_RELEASES.
- The rule runs on Revit 2023 only (CURTAIN_WALL_2023_REVIT_VERSIONS), the
  release it is measured on.
- A wall whose type is a NewCurtainWallType is a curtain wall whether or not
  the type's record holds a name; the name only labels it.
- wholes_carried_by_parts: a whole counts as carried only where some part has
  a body, one rule for the export summary and the geometry gaps.
- The ArcWall naming branch for a match with no ElementId is gone: the scan
  keeps none.
- tools/ci/validate-real-ifc.py pins Einhoven's one wall, one curtain wall,
  24 panels and 2 windows as floors (no Revit export of the file exists).
…t stays unexercised and what changes host (DrunkOnJava#1809)

- viewer-regression: one storey (was four, the ArcWall matches' elevations),
  no missing-level or thickness gap, the wall 'Basic Wall:Wall 1:2808' and its
  RvtElementRecordGeometry set (BoundingBoxHeight as the length row), and the
  drag test on the two windows (Einhoven has one wall). Values read from
  Measure 43509948454's kept export at 96e1b15.
- parameters-row: the empty-state test falls back to RE1 Mechanical, which
  has 25 exported elements with no parameters; Einhoven and Core Interior
  have none now (v0.22.0 rvt-elements against its rvt-ifc export).
- RE-440: section 5 describes the reworked reader; section 7 says what keeps
  the untested half of native_walls_only from being wrong, and that both
  Einhoven windows stay in wall 2808.
@DrunkOnJava

Copy link
Copy Markdown
Owner

@puzzbobb, thank you again for RE-440. Rather than send it back to you a second time, I made the review's changes on this branch myself. Your commits are as you wrote them, and mine sit on top:

  • Merge of main (ec213dd). docs/status.md and docs/format-reconnaissance.md conflicted with RE-448 and RE-456; both sides are kept, main's first.
  • Review changes (96e1b15):
    1. attach_curtain_walls_2023 takes the walls' types from WallReads::type_ids, the shared read read_wall_records makes (Revit 2015–2023 exports: the remaining time against 0.11.0 after #1237 #1335), instead of another full-graph pass. The types' own records are one read of those types alone (native_walls::curtain_wall_types). wall_type_ids is gone.
    2. The rule runs on Revit 2023 only (CURTAIN_WALL_2023_REVIT_VERSIONS), the release it is measured on.
    3. One rule, wholes_carried_by_parts, now counts a whole as carried only where some part has a body. Both the export summary's counter and the geometry gaps use it, so a whole whose parts have no body is still a gap.
    4. A wall whose type is a NewCurtainWallType is a curtain wall whether or not the type's record holds a name; the name only labels it.
    5. The ArcWall-{partition}-{offset} name is gone, since the scan keeps no match without an ElementId. An unreadable record set still empties the scan on purpose: without its record's class, a byte match is no evidence of a wall.
  • CI (96e1b15, aad2f60):
    • tools/ci/validate-real-ifc.py pins Einhoven's 1 wall, 1 curtain wall, 24 panels and 2 windows as floors. No Revit export of the file exists to pin to.
    • The viewer tests follow Einhoven's new export. The values were read from Measure 43509948454's kept IFC at 96e1b15.
    • The empty-state test falls back to RE1 Mechanical: no element Einhoven or Core Interior writes now lacks parameters.
  • RE-440: §5 describes the reworked reader. §7 says what keeps the untested half of native_walls_only from being wrong, and that both of Einhoven's windows stay in wall 2808.

rvtReview reads it once CI is green and runs the unfiltered Measure on the final head.

…verflows, and the filter line may be singular (DrunkOnJava#1809)

Einhoven's storey now holds 3 categories, its windows' 2 and its curtain
wall 24 panels (RE-440), where its walls' category held 26. Blocks of 3
left no category to overflow; blocks of 1 put the storey's categories and
the windows behind a Show more row, and the filter lists 4 (4 blocks of 1).
'Basic Wall' matches Einhoven's one wall, and the status line says
'1 element matches'.
…RecordGeometry group, one of 8 Einhoven's wall now has (DrunkOnJava#1809)
…no rows are left, so its focus check runs on Einhoven's 2 windows (DrunkOnJava#1809)
…ast 8 properties, before checking its rows are visible (DrunkOnJava#1809)
rvt-rs-review[bot]
rvt-rs-review Bot previously approved these changes Nov 13, 2026
@DrunkOnJava
DrunkOnJava enabled auto-merge (squash) November 13, 2026 23:15
# Conflicts:
#	docs/format-reconnaissance.md
@DrunkOnJava
DrunkOnJava merged commit 867e3ea into DrunkOnJava:main Nov 13, 2026
36 checks passed
@puzzbobb
puzzbobb deleted the fix-einhoven-2023 branch November 14, 2026 08:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants