Skip to content

fix(elements): a curtain part that names two curtain walls and finds no grid takes the wall the element data of one of its other ids names, and one that gets none takes the IsExternal its walls share (#1865) (RE-449) - #1896

Merged
DrunkOnJava merged 6 commits into
mainfrom
fix/1865-corner-mullion-walls
Nov 13, 2026

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Nov 13, 2026 •

Copy link
Copy Markdown
Owner

Summary

A curtain part that names two or more curtain walls and finds no grid takes the one wall that the element data of one of its other ids also names, where exactly one does; one that gets none stands alone and takes the IsExternal its walls share. This restores 74 of the 79 corner mullions of Autodesk's rac_advanced saved by Revit 2027 to their curtain wall, and all 79 to the IsExternal, the same project's 2025 save gives them. Part of #1865 (RE-449).

The rule reaches every file with such a part, not the 2027 sample alone. Registered row 3 said it would not; I had read a census of 16 models as one of every model Measure holds. On the unfiltered run 43392439717 15 of 146 exports change and no other (every held-out model, Core Interior, Einhoven, RE1 Architecture, the Snowdon samples and the 2024 to 2026 saves of rac_advanced are byte-identical):

  • IfcMember gains Pset_MemberCommon.IsExternal, the host rule's value (RE-288): 79 in each rac_advanced save of 2015, 2016, 2017 and 2027, 9 in 2020, 19 in 2021, 9 in 2023; 2 and 4 in the BIM4LCA offices. parameter_value_count moves by the same amounts, and nothing else in any diagnostics.
  • Two IfcMember of the BIM4LCA timber office are aggregated into the curtain walls Revit's own export names: aggregates_vs_ifc "same whole" 7,872 to 7,874 (permit 7,868 to 7,870), "only Revit aggregates" 4 to 2.
  • The rac_advanced saves of 2015 to 2022 now agree on 19,979 values and those of 2024 to 2027 on 21,035; the 2023 save stays six short (Revit 2023 rac_advanced: two furred ceilings (247617, 247677) lose their parameter sets, six values short of the 2022 save #1899).

Motivation

On rac_advanced saved by Revit 2027, 79 corner mullions (L Corner Mullion:L Mullion 1) are parts of a curtain wall on the 2025 save and of none on the 2027 save, and lose the IsExternal they take from their wall. The chain, each step read from a probe run registered on #1865 before it ran:

Changes

  • src/research/partition_schema_mvp/curtain.rs:
    • scan_walls_in_element_data (new): for the ids of the lists of the parts that name two or more curtain walls and no grid (79 in the 2027 sample; others in the files of the table above), the curtain walls whose ElementId lies at least twice within 1,200 bytes past the id, where the release's element-data header opens the data. No offset is fixed.
    • attach_curtain_walls: the arm (0, 2 or more), which gave no wall before, takes the one wall of the part's list that the data names; part_walls is the shared definition of the two sets the match is made on. A part for which that gives no one wall keeps the walls it names (m_curtain_walls_named). A part that already had a wall never reaches the arm.
    • attach_curtain_member_is_external: a part with no wall takes the IsExternal all its named walls have, where each has one and they agree.
  • src/research/partition_schema_mvp/fields.rs: the window, the copies and the field's name.
  • tools/re/ifc_bag_diff.py (new): the entity lines two IFC exports hold only one of, with the step numbers left out, by entity type. Measure's semantic diff reads a sample of each class's property sets and did not show these members; this reads the whole files.
  • reports/element-framing/RE-449-curtain-corner-mullions.md, docs/status.md, docs/support-matrix.json, changelog.d/fixed/1865-corner-mullion-walls.md.

Testing

Unit tests are banned in this repository; the check is the end-to-end measurement registered on #1865 (comment 6846957690) before the change was written, read in reports/element-framing/RE-449-curtain-corner-mullions.md section 4:

  • Row 1 (pair run 43386636537): on rac_advanced 2027 the 34 curtain walls hold 4,458 parts, from 4,384, and 29 of them as many as on 2025; the other five walls are those of the 5 mullions and the door.
  • Row 2: is_external_lost IFCMEMBER 79 to none on the 2025 to 2027 and 2026 to 2027 pairs; no other project's pair loses one.
  • Row 3 failed, and is not relabelled: 15 of 146 export hashes and 11 of 121 diagnostics.json differ, where the row allowed one. Run 43397936815 kept the IFC of eight of them: the only entities that differ are the IsExternal properties and, in the as-built timber office, two curtain walls' IfcRelAggregates (21 to 22 members) with the two storey containment lists that lose a member each. No Revit value scores the IsExternal values (RE-269, RE-288); the aggregates are scored by Revit's own export and improve.
  • Row 4: the same-project gates check run on 8744d8d7 passes (15 samples held to their earlier saves; the Areas on 4 saves and on the 2021 save). The commits after it change documents and tools/re only.
  • This PR's CI. I cannot build locally (rule of this repository), so CI is the first compile of this change.

Audit-honesty checklist

Legal and contribution hygiene

  • I agree this work is licensable under Apache-2.0
  • This PR contains no Autodesk proprietary source, decompiled internals, or NDA'd SDK content. revit-ifc is not read for this change.
  • No new test fixtures

Breaking changes

None to an API. A part that names two or more curtain walls and has no grid now takes a wall or an IsExternal where it took none, in the 15 exports listed in Summary.

Related issues

Refs #1865 (the curtain door 216844 has another cause and the issue stays open for it). Found on the way: #1899 (the 2023 save of rac_advanced is six values short).

…no grid takes the wall the element data of one of its other ids names, and one that gets none takes the IsExternal its walls share (#1865) (RE-449)

On Autodesk's rac_advanced saved by Revit 2027, 79 corner mullions name both walls
of their corner where the 2025 save names one. attach_curtain_walls takes the
grid's wall, else the one wall a part names (RE-46), else the one wall whose
record box holds it (RE-62), and a part naming two with no grid matched no arm:
the 79 stood in no curtain wall on 2027 and so lost the IsExternal they take from
it (#1865). The lists, the record boxes and the order of the lists tell the two
walls apart for none (the 2025 wall is first for 57 of the 79, last for 22; no
box holds a mullion), but the element data of one other id of each list, its
grid, names exactly one of the part's walls, and it is the 2025 wall for all 75
that have such an id, on the 2025 save and on the 2027 save (probe_1865_grid_walls).

A new arm for (no grid, two or more walls): the one wall of the part's list that
the element data of one of its other ids also names, where exactly one does.
scan_walls_in_element_data reads the data of those ids only (the lists of such
parts, none in any other model of Measure) and counts a wall as named when its
ElementId lies at least twice within 1,200 bytes past the id, wherever: the offsets
differ between grid kinds and releases, so none is fixed. A part for which that
gives no one wall stands alone and keeps the walls it names; the IsExternal its
walls all have, where they agree, is its own (attach_curtain_member_is_external).

Part of #1865 (the curtain door 216844, which names one wall on both saves and
loses its wall on 2027, has another cause and is not changed here).
…lls and the grid data that names theirs (#1865) (RE-449)
…d cites the issue comment that registered the first probe (#1865) (RE-449)
…rts gain IsExternal on curtain mullions and two timber-office members their wall; tools/re/ifc_bag_diff.py reads what an export gained (#1865) (RE-449)
…positions from the reader's memo, and the IsExternal values it adds outside the 2027 file are said to be unmeasured, not equal (#1865) (RE-449)
@DrunkOnJava
DrunkOnJava merged commit a58e184 into main Nov 13, 2026
38 checks passed
@DrunkOnJava
DrunkOnJava deleted the fix/1865-corner-mullion-walls branch November 13, 2026 10:09
DrunkOnJava added a commit that referenced this pull request Nov 13, 2026
…one curtain wall its list names when the element data names it too, so the curtain door of rac_advanced on Revit 2027 is aggregated again (#1865) (RE-452) (#1911)

## Summary

A door or window with no curtain grid found whose reference list names
exactly one curtain wall is a part of that wall when the element data of
an id in its list names that wall too, as a mullion's or a panel's grid
does. The curtain door 216844 of Autodesk's `rac_advanced` is aggregated
into the curtain wall 162023 on the 2025 and 2026 saves and stood alone
on the 2027 save; it is a part of 162023 there again, with the
`IsExternal` its wall gives. `aggregates_vs_ifc` now counts `IfcDoor`
and `IfcWindow`.

## Motivation

The last item of #1865 after #1896 (RE-449). Doors and windows are the
`openings` of `attach_curtain_walls`, which took a curtain wall only
through a curtain grid, whose offsets (RE-72) are not found on 2027;
RE-449's data fallback was written for mullions and panels and never
reached them. RE-449 also said this door's match gave it the wall on
both saves: that was wrong, and RE-452 corrects it. Cause, rows and the
first form's failure are on
[#1865](#1865 (comment))
and [its
follow-up](#1865 (comment)).

The first form took the named wall alone (`cedf41be`). It failed two
registered rows: 52 of 146 exports moved, and one door of the spent
Vitoria 2018 model (Revit's export puts it in an ordinary wall) was put
in a curtain wall (`opening_hosts_vs_ifc` "the wall Revit fills" 130 to
129). Scored on doors for the first time, it also put 268 of 268 of the
offices' doors right. The rule as it ships needs the element data to
name the wall too.

## Changes

- `src/research/partition_schema_mvp/curtain.rs`: the openings loop of
`attach_curtain_walls` uses `part_walls` and `data_confirmed_wall`, with
the `(1, _)` arm and a `(0, 1)` arm that needs
`scan_walls_in_element_data` to name the wall.
- `tools/re/aggregates_vs_ifc.py`: `IfcDoor` and `IfcWindow` join the
counted kinds.
- `reports/element-framing/RE-452-curtain-openings-named-wall.md`,
`docs/status.md`, `changelog.d/fixed/1865-curtain-door-wall.md`.

## Testing

Unit tests are banned in this repository; the evidence is the export's
own values, on the rows registered on #1865:
- [x] Row 1: the 2027 `rac_advanced` aggregates the door 216844 into
162023 as 2025 and 2026 do, and `Pset_DoorCommon.IsExternal` is true
(kept exports of run
[43433248231](https://github.com/DrunkOnJava/rvt-rs/actions/runs/43433248231)).
- [x] Row 2: no door or window that Revit's export puts in an ordinary
wall moves: `opening_hosts_vs_ifc` and `openings_vs_ifc` do not change
on the spent Vitoria 2018 model or any other model with a Revit export
(run
[43429692923](https://github.com/DrunkOnJava/rvt-rs/actions/runs/43429692923),
unfiltered, against `0c58ea68`).
- [x] Row 3: `aggregates_vs_ifc` shows no `IfcDoor` or `IfcWindow` in a
different whole or only aggregated by rvt-rs; the four offices go from
268 doors only Revit aggregates to 84, and from 4 doors in the same
whole to 188, i.e. 184 now match.
- [x] Row 4: 125 of 146 exports and 121 of 121 diagnostics files are
identical; the 21 that change are the four offices, the `rac_advanced`,
`rac_basic`, `rme_advanced` and `rme_basic` samples of 2024 to 2027 and
Snowdon Towers Architectural; none of 2015 to 2023, no held-out or
housing model. The `same-project gates` check passes on `c5a32881`.
- [ ] This PR's CI (I cannot build locally, so CI is the first compile
of this change).

Not measured: the 17 sample and Snowdon exports that change have no
Revit export, so they are held to the same project's other saves; what
the 84 doors left out need (section 6 of the report).

## Audit-honesty checklist

- [x] README / docs reflect the current state after this PR
(`docs/status.md`)
- [x] A user-visible change has its entry as a fragment under
`changelog.d/fixed/`
- [x] If a limitation was resolved or introduced: 84 office doors are
still left out, stated in the report and the fragment
- [x] Commit messages describe WHAT changed and WHY
- [x] No emojis in code, docs, or commit messages
- [x] No private paths, personal email addresses, or internal jargon in
committed files
- [x] A reverse-engineering finding: the report RE-452 and the Measure
runs it lists reproduce it

## Legal and contribution hygiene

- [x] I agree this work is licensable under Apache-2.0
- [x] This PR contains no Autodesk proprietary source, decompiled
internals, or NDA'd SDK content
- [x] No new test fixtures

## Breaking changes

None. A door or window of a Revit 2024 to 2027 file may gain a curtain
wall as its whole; the 21 exports above are the ones that do.

## Related issues

Refs #1865 (the 5 mullions whose lists name no wall, RE-449, and the 84
office doors stay open).
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.

1 participant