Skip to content

research: probe_1865_grid_walls prints where the curtain grids' element data name their wall on two saves of one project, for the 80 curtain parts that lose their wall on 2027 (#1865) - #1890

Merged
DrunkOnJava merged 2 commits into
mainfrom
research/1865-grid-walls
Nov 13, 2026

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Nov 13, 2026 •

Copy link
Copy Markdown
Owner

Summary

probe_1865_grid_walls prints, for the curtain parts that are a part of a curtain wall in one save of a project and of none in another, where in the data of the curtain grid their list names the curtain wall lies, on both saves. Part of #1865.

Motivation

#1879's probe found that the 80 curtain parts of Autodesk's rac_advanced that lose their wall on the 2027 save are 79 corner mullions, whose lists name two curtain walls on 2027 and one on 2025, and a curtain door whose list names one wall on both (run 43381092468). A curtain part takes the wall of the curtain grid its list names before anything else, a curtain door or window takes no other way in (RE-46), and the grid's element data names its wall at two offsets past its ElementId (CURTAIN_GRID_WALL_OFFSETS, 85 and 478, RE-72). If the 2027 grids hold their wall elsewhere, the grid lookup finds nothing on 2027, the mullions fall to RE-46's exactly-one rule and the door has nothing: one cause for all 80. Neither list order (57 of 79 name the 2025 wall first, 22 last) nor the record boxes (none holds the part) can pick the wall, so a rule that names the corner's host from the lists alone does not exist.

Changes

  • probes/examples/probe_1865_grid_walls.rs (new): with two saves, finds the parts aggregated in the first and in no wall in the second (from the IFC exports, as probe_1865_part_walls), lists for each the ElementIds its list names that are no curtain wall, and for each such id the places its element data opens (the release's element-data header followed by the id) with the offsets past the id at which one of the part's curtain walls lies within 1,200 bytes. It prints the set of offsets seen on each save.

Testing

Unit tests are banned in this repository: none added.

Audit-honesty checklist

  • README / docs reflect the current state after this PR (nothing user-visible changes)
  • N/A: no user-visible change, so no changelog fragment
  • N/A: no limitation resolved or introduced
  • Commit messages describe WHAT changed and WHY
  • No emojis in code, docs, or commit messages
  • No private paths, personal email addresses, or internal jargon in committed files
  • The probe under probes/examples/ states its FACT

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.

Related issues

Refs #1865.

…nt data name their wall on two saves of one project, for the 80 curtain parts that lose their wall on 2027 (#1865)

probe_1865_part_walls (#1879) found that the 80 curtain parts of rac_advanced
that are parts of a curtain wall in the 2025 save and of none in the 2027 save
are 79 corner mullions, whose lists name two curtain walls on 2027 and one on
2025, and a curtain door whose list names one on both. A curtain part takes
the wall of the curtain grid its list names before anything else, a curtain
door or window takes no other, and the grid's element data names its wall at two
offsets past its ElementId (RE-72). If the 2027 grids hold their wall at other
offsets, the grid lookup finds nothing on 2027, the mullions fall to RE-46's
exactly-one rule and the door has no other way in: one cause for all 80.

The probe takes two saves and, for each part that is a part of a curtain wall in
the first and of none in the second, prints every ElementId its list names that
is no curtain wall and the offsets past that element's data at which a curtain
wall named by the list lies, then the set of offsets seen on each save.

No src change. Part of #1865.
… lookup for the lost parts, so its (on_grid, named) match is read for each (#1865)

The first run of the probe (43382999619) found the curtain wall named in each
grid's element data at 84, 539, 930 and 1130 past the id on the 2025 save and at
84, 531, 914 and 1114 on the 2027 save, not at RE-72's 85 and 478, and the
2025 save aggregates all 80 parts anyway. Which arm of the match each part takes
on each save is what explains the door and the corner mullions, so the probe now
reproduces the lookup: for each lost part the curtain walls its list names, the
walls the list's other ids give at RE-72's offsets where the two agree and are a
wall (the lookup's own rule, over every wall record), and how many parts have
each pair of set sizes.

No src change. Part of #1865.
@DrunkOnJava
DrunkOnJava merged commit 0dfacbd into main Nov 13, 2026
37 checks passed
@DrunkOnJava
DrunkOnJava deleted the research/1865-grid-walls branch November 13, 2026 09:02
DrunkOnJava added a commit that referenced this pull request Nov 13, 2026
…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)

## 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](https://github.com/DrunkOnJava/rvt-rs/actions/runs/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
(#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:
- #1877 (run 43379354161): all 79 are standalone on 2027; no curtain
wall differs between the saves; the 34 walls are all external on both.
- #1879 (run 43381092468): each names one wall on 2025 and two on 2027
(the corner's), the 2025 wall among them; the order of the list does not
pick it (first for 57, last for 22) and no record box holds a mullion
(RE-62's rule finds nothing).
- #1890 (runs 43382999619 and 43384818097): `attach_curtain_walls`
matches `(grid walls, named walls)`: the 79 are `(0, 1)` on 2025 and
`(0, 2)` on 2027, an arm it does not have. 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 parts that have such an id, on both saves,
at offsets that differ from RE-72's and move between releases (84 stays;
the others move by 8 to 16 bytes). Five mullions have no such id.

## 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](#1865 (comment)))
before the change was written, read in
`reports/element-framing/RE-449-curtain-corner-mullions.md` section 4:
- [x] Row 1 (pair run
[43386636537](https://github.com/DrunkOnJava/rvt-rs/actions/runs/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.
- [x] 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](https://github.com/DrunkOnJava/rvt-rs/actions/runs/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.
- [x] 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

- [x] README / docs reflect the current state after this PR
- [x] A user-visible change has its entry as a fragment under
`changelog.d/`
- [x] If a limitation was resolved, the docs are updated (the 80 parts'
entry in `docs/status.md`)
- [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] Reverse-engineering finding: probes under `probes/examples/`
(#1877, #1879, #1890) and the dated report
`reports/element-framing/RE-449-*.md`

## 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. revit-ifc is not read for this change.
- [x] 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).
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