Repository navigation
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
Conversation
…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)
14 of 15 tasks
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).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
IsExternalits walls share. This restores 74 of the 79 corner mullions of Autodesk'srac_advancedsaved by Revit 2027 to their curtain wall, and all 79 to theIsExternal, 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_advancedare byte-identical):IfcMembergainsPset_MemberCommon.IsExternal, the host rule's value (RE-288): 79 in eachrac_advancedsave of 2015, 2016, 2017 and 2027, 9 in 2020, 19 in 2021, 9 in 2023; 2 and 4 in the BIM4LCA offices.parameter_value_countmoves by the same amounts, and nothing else in any diagnostics.IfcMemberof 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.rac_advancedsaves 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_advancedsaved 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 theIsExternalthey take from their wall. The chain, each step read from a probe run registered on #1865 before it ran:attach_curtain_wallsmatches(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_wallsis 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 theIsExternalall 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.mdsection 4:rac_advanced2027 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.is_external_lost IFCMEMBER79 to none on the 2025 to 2027 and 2026 to 2027 pairs; no other project's pair loses one.diagnostics.jsondiffer, where the row allowed one. Run 43397936815 kept the IFC of eight of them: the only entities that differ are theIsExternalproperties 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 theIsExternalvalues (RE-269, RE-288); the aggregates are scored by Revit's own export and improve.same-project gatescheck run on8744d8d7passes (15 samples held to their earlier saves; the Areas on 4 saves and on the 2021 save). The commits after it change documents andtools/reonly.Audit-honesty checklist
changelog.d/docs/status.md)probes/examples/(research: probe_1865_curtain_is_external names the curtain members that lose IsExternal between two saves and the curtain walls that hold them (#1865) #1877, research: probe_1865_part_walls prints the curtain walls the lists of the curtain parts that lose their wall name, and which one held each part before (#1865) #1879, 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) and the dated reportreports/element-framing/RE-449-*.mdLegal and contribution hygiene
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
IsExternalwhere 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_advancedis six values short).