Skip to content

fix(ifc): a wall of a curtain wall type is a curtain wall on Revit 2024 to 2027 as on 2023, and a host panel of another curtain wall is not one (#1960) (RE-462) - #1966

Merged
DrunkOnJava merged 5 commits into
mainfrom
research/1960-curtain-wall-structure
Nov 14, 2026
Merged

DrunkOnJava merged 5 commits into
mainfrom
research/1960-curtain-wall-structure

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Nov 14, 2026 •

Copy link
Copy Markdown
Owner

Summary

On Revit 2024 to 2027 a wall whose type is a curtain wall type is a curtain wall, as it already is on 2023, and a curtain wall that is the host panel of another curtain wall's grid is not one on either (RE-462). Closes #1960.

Motivation

#1960: the 2023 reader makes a wall a curtain wall by its type (RE-440) and the 2024 reader by a mullion that names it or a grid it finds (RE-46, RE-72), so they disagree on the two single-cell curtain walls of Autodesk's rme_basic (573660 and 573664, no mullion): IfcCurtainWall on 2023, IfcWall on 2024. No Revit export of rme_basic exists. The probe of this PR (run 43542030075) read what the walls of a curtain wall type hold, and Revit's exporter source says how it decides: by the curtain grid the wall has, with no test of mullions or cells, and a host panel of another curtain wall is folded into its owner (CurtainSystemExporter, WallExporter, revit-ifc, cited, not copied). Both readers are measured exact on every file that has a Revit export; neither is the exporter's rule.

Changes

  • probes/examples/probe_re462_curtain_wall_structure.rs (new): for every wall of a curtain wall type, the objects its record holds, its cells and panels, and every other curtain wall its record or its panels' records name.
  • src/research/native_walls.rs: WallFacts.host_panel and WallReads::host_panels: whether a wall's record holds a HostPanelInfo object, read in the same projected read as the wall's type (no field added to WALL_READ_FIELDS) and by the full read where that makes the walls' type ids.
  • src/research/partition_schema_mvp/curtain.rs: curtain_walls_by_type: on 2024 to 2027, a wall whose type is a NewCurtainWallType and that is no host panel is a curtain wall, beside the walls a mullion or a grid names. Its panel then names it as its whole, as the 2023 panels do.
  • src/research/partition_schema_mvp/records_2023.rs: the 2023 type rule skips a host panel.
  • reports/element-framing/RE-462-curtain-wall-type-and-host-panels.md, changelog.d/fixed/1960-curtain-wall-by-type.md, and the curtain wall rows of docs/status.md and docs/supported-profile.md.

Testing

The rows were registered on #1960 before any run (comment); the results are RE-462 section 6. Measures at c802574c: 43544055702 (unfiltered, every switch of the 146-model run), 43546540315 (both sides' exports kept for the 2023 and 2024 saves and Snowdon Towers) and 43546590766 (timing).

  1. Only the 2024 to 2027 saves of rme_basic and rme_advanced move: 8 of the 146 exports (113 of 121 diagnostics equal). Every other export, Snowdon Towers' five files, the BIM4LCA models, the 24 Revit 2025 models and the held-out models (counts only) included, is byte-identical to main's.
  2. In the moved 2024 exports three elements differ (6,828 and 6,783 elements, none in only one file): 573660 and 573664 become IfcCurtainWall named Curtain Wall:Standard:<id> with their panels 573661 and 573665 aggregated to them, and 573665 gains Pset_PlateCommon.IsExternal, as every plate under a curtain wall has it. Before the change 573661 was a part of 574261, a wall that does not hold it, and 573665 a part of none.
  3. The 2023 and 2024 saves of rme_basic agree on 33 of 33 curtain walls and on every one of their panels (31 of 33 and 30 of 33 before).
  4. Snowdon Towers' export does not move; its 23 host panels are still written as IfcPlate, which Revit's export has nothing for (Snowdon Towers: 23 host panels of curtain walls are written as IfcPlate where Revit's export writes nothing #1975).
  5. The same-project gates passed on the head. The two moved exports' diagnostics differ in 14 values, all consequences of the above (class counts, the two walls' bodies, one plate a part, revit_compound_assemblies_and_walltype_widths leaves the unsupported features).
  6. Time over main's is at most 1.025 on 21 files timed (median 1.01).
  • tools/check-local.sh: not run locally (no local builds); rustfmt --check passes on the edited files, tools/release/changelog.py check, tools/ci/api-doc-ids.py and tools/ci/measured_numbers.py pass, and CI runs the rest.
  • Verified end to end on real Revit files: the Measures above, with the probe that reproduces it.
  • IFC exporter: the Measures above.
  • Performance: the timing Measure above.

Audit-honesty checklist

  • The claim for 573660 and 573664 says what it rests on: the exporter's source, not a Revit export of a mullion-free curtain wall (none is in any corpus). RE-462 section 7 says so.
  • The curtain wall rows of docs/status.md and docs/supported-profile.md say the type rule and what measured it; a fragment under changelog.d/fixed/.
  • No private paths, emails or internal jargon in committed files.

Legal and contribution hygiene

  • Apache-2.0. Revit's exporter is read as source 5 of CLEANROOM.md (revit-ifc): file and class cited for what it writes, no code copied.
  • No new fixtures; the Snowdon Towers files and Revit's exports of it stay local.

Breaking changes

None. attach_curtain_walls is crate-private.

Related issues

Closes #1960. Follow-up found on the way: #1975 (the 23 host panels of Snowdon Towers written as IfcPlate).

…ype holds, to tell the walls Revit leaves out of its export from the ones it writes (#1960) (RE-462)
…24 to 2027 as on 2023, and a host panel of another curtain wall is not one (#1960) (RE-462)
…tatus and profile pages say the curtain wall type rule (#1960)

Only the 2024 to 2027 saves of rme_basic and rme_advanced move (8 of 146 exports): the two single-cell curtain walls 573660 and 573664 become IfcCurtainWall with their panels aggregated, 573665 gains the property every plate under a curtain wall has, and the 2023 and 2024 saves of rme_basic agree on 33 of 33 curtain walls and their panels. Timing is within 2.5% of main's.
@DrunkOnJava
DrunkOnJava marked this pull request as ready for review November 14, 2026 03:09
@DrunkOnJava
DrunkOnJava merged commit 08d9f75 into main Nov 14, 2026
63 checks passed
@DrunkOnJava
DrunkOnJava deleted the research/1960-curtain-wall-structure branch November 14, 2026 03:21
DrunkOnJava added a commit that referenced this pull request Nov 14, 2026
…all's grid is left out on Revit 2024, as Revit's export leaves it out (#1975) (RE-462) (#1986)

## Summary

On Revit 2024 a curtain panel whose wall record holds a `HostPanelInfo`
(the host panel of another curtain wall's grid) is left out, as Revit's
export leaves it out. Snowdon Towers Architectural (local only) had 23
such panels written as `IfcPlate` `CURTAIN_PANEL` that Revit's export
has no entity for. rvtReview's diagnosis on #1975 found the 23 extra
plates are exactly the 23 `HostPanelInfo` walls, both ways.

## Changes

- `partition_schema_mvp/curtain.rs`: `without_host_panels`, gated by
`HOST_PANEL_REVIT_VERSIONS = &[2024]` (RE-353: only Snowdon 2024 holds
host panels). It reads `HostPanelInfo` through #1966's
`WallReads::host_panels`, so there is no new pass over the file, and it
runs beside the empty-panel filter (#309). A read that fails keeps every
panel and is reported in `warnings`.
- `reader.rs`: the left-out panels and the error, as for RE-363's
fixtures. `ifc/mod.rs` counts them as
`element_record_curtain_host_panel`. `rvt-ifc` prints them, and the
reason is added to `tests/export_decisions_counts.rs`'s frame reasons,
the diagnostics schema and `docs/export-diagnostics.md`.
- `docs/status.md` and a changelog fragment.

## Testing

Registered on #1975 before the run. Measure unfiltered with samples,
nordic, r2025 and holdout, and Snowdon's export kept:

1. The 23 `IfcPlate` go and no other entity of the Snowdon architectural
export moves; the other four Snowdon files are byte-identical to main's.
2. Every other file of the models is byte-identical to main's.
3. Against Revit's local export of Snowdon architectural, scored locally
(counts and Tags only), the `IfcPlate` Tags are equal: none only in
Revit, none only in rvt-rs.

## Result

Measure
[43555675665](https://github.com/DrunkOnJava/rvt-rs/actions/runs/43555675665):
head `5099cbd2` against main `ca71e696`, unfiltered with samples,
nordic, r2025 and holdout, Snowdon's export kept. The merge of main at
`708dd626` (after v0.23.0) changes nothing the run measures.

1. **Holds.** Only Snowdon architectural's export moves:
   - `IFCPLATE` 485 to 462, and building elements 6,148 to 6,125.
- The new skipped reason `element_record_curtain_host_panel` counts 23
`CurtainWallPanel`.
- `schema.txt`'s two scorer lines: property sets 13,574 on 6,285 objects
and types to 13,551 on 6,262.
   - The other four Snowdon files are byte-identical to main's.
2. **Holds.** 119 of 120 exports and 101 of 102 `diagnostics.json` files
are byte-identical to main's. The one that differs on each side is
Snowdon architectural's.
3. **Holds.** That run's kept export was scored locally against Revit's
own IFC4 export of Snowdon architectural, by `Tag` (counts and Tags
only):

   | | IfcPlate | only in rvt-rs | only in Revit | IfcCurtainWall |
   |---|---:|---:|---:|---:|
   | Revit | 462 | | | 60 |
   | main | 485 | 23 | 0 | 60 |
   | this PR | 462 | 0 | 0 | 60 |

   The 23 that go are the `CURTAIN_PANEL` plates of 7 curtain walls.

`same-project gates` passes on `5099cbd2`.

Clean-room: revit-ifc's `WallExporter.Export` and
`CurtainSystemExporter.GetVisiblePanelsForGrid` are cited for what Revit
writes, not copied.

Closes #1975.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant