Skip to content

fix(elements): a wall's type Function is read on Revit 2026 and 2027, so walls and the curtain parts on them get IsExternal there (#1860) - #1861

Merged
DrunkOnJava merged 3 commits into
mainfrom
fix/1860-wall-function-2026
Nov 13, 2026
Merged

DrunkOnJava merged 3 commits into
mainfrom
fix/1860-wall-function-2026

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Nov 13, 2026 •

Copy link
Copy Markdown
Owner

Summary

A wall's type Function is now read on Revit 2026 and 2027 saves as on 2015 to 2025. Walls there, and the curtain members, plates and curtain walls that take IsExternal from their wall, get the value the same project's 2025 save gets. Closes #1860.

Motivation

#1852's element diff of each 2025 sample against its 2026 save (run 43334394489) found IsExternal present in the 2025 save and absent in the 2026 save on 4,643 elements of rac_advanced, 244 of rac_basic, 2,244 of each rme sample and 9 walls of rst_basic. It was never the other way round. WALL_TYPE_FUNCTION_REVIT_VERSIONS ended at 2025, the last release measured when it was written, so attach_wall_type_functions read nothing on 2026 and 2027.

Changes

  • src/research/partition_schema_mvp/fields.rs: WALL_TYPE_FUNCTION_REVIT_VERSIONS takes 2026 and 2027, and its doc names what measures them.
  • changelog.d/fixed/1860-wall-function-2026.md.
  • docs/status.md: the 2026 and 2027 paragraph lists walls' and their curtain parts' IsExternal as written, not unread. RE-346 had left it open ("Some other release list or rule gates it"), and this is that list.

Testing

Unit tests are banned here. The evidence is one unfiltered Measure of this head against its merge-base with main: the samples of every year, the BIM4LCA models, the R2025 set, rac_advanced and the held-out models.

readers_across_saves.py (part of same-project gates) already holds each 2026 and 2027 save's Pset_*Common.IsExternal to its 2025 save's. It fails a value that differs or one written only on the later save, and counts one written only on the 2025 save without failing. That count is what this PR should empty.

Rows, registered before the run:

  1. Only 2026 and 2027 saves move. The exports that differ are the 2026 and 2027 samples, and any 2026 or 2027 model Measure holds (flowbim.ee's house). In each, the only change is IsExternal values added to walls and to the curtain members, plates and curtain walls on them. Every other export and diagnostics.json is equal except those files' IsExternal counts.
  2. Equal to the 2025 save. same-project gates pass, so no IsExternal differs from the 2025 save's, and none is written only on the later save. Reported per sample: the IsExternal values compared equal before and after.
  3. Against Revit. On every Revit export of a 2026 or 2027 model the run scores, IsExternal "different" and "values Revit does not write" are unchanged or lower. Any line that moves is named here.
  • rustfmt --edition 2024 --check passes. CI runs the rest.
  • Exporter output changes: rows 1 and 3.

Audit-honesty checklist

  • Changelog fragment, and docs/status.md's 2026 and 2027 paragraph.
  • No emojis, private paths or jargon.

Legal and contribution hygiene

  • Apache-2.0. No Autodesk proprietary content.

Breaking changes

None.

… is written, with the 79 2027 members still without it (#1860, #1865)
@DrunkOnJava

Copy link
Copy Markdown
Owner Author

Unfiltered Measure 43336468164 at 283c23b6 against the merge-base 925c482d, read against the rows above.

Row 1 holds. 15 of 126 exports differ:

  • the five 2026 samples and the five 2027 samples;
  • five held-out models of those years, flowbim's 2026 house among them.

Every other export is identical, and so is every other diagnostics.json (92 of 102). In the ten samples that moved, the only diagnostics line that changes is parameter_value_count. It rises by the IsExternal values written: 4,643 on 2026 rac_advanced (146 walls, 34 curtain walls, 3,156 members, 1,307 plates), 9 on 2026 rst_basic.

Row 2 holds, but one sample is short. same-project gates passed on 283c23b6. No IsExternal differs from the 2025 save's, and none is written only on the later save. Per sample, IsExternal compared equal, before and after:

Save Walls Curtain walls Members Plates
2026 rac_advanced 0 → 146 0 → 34 36 → 3,192 0 → 1,307
2026 rac_basic 0 → 47 0 → 9 0 → 144 0 → 44
2026 rme_advanced, rme_basic 0 → 135 0 → 31 0 → 1,450 0 → 628
2026 rst_basic 0 → 9
2027, the same samples as 2026 as 2026 as 2026, except rac_advanced: 36 → 3,113 as 2026

So the count this PR should empty is empty on every 2026 save and on four of the five 2027 saves. On 2027 rac_advanced, 79 members still go without, and nothing is written wrong. That save's export also counts 3 curtain walls whose box is not read (curtain_wall_box_not_read), where 2026 counts none. Its parameter_value_count is exactly 79 below 2026's. Filed as #1865, with that lead; the type Function this PR reads is not its cause.

Row 3 holds. These are the Revit exports of 2026 and 2027 models the run scores: flowbim's house and four other held-out models, counts only. Each moves only Pset_WallCommon.IsExternal from missing to equal (59, 10, 10, 9 and 9). "Different" stays 0, and "values Revit does not write" stays 0.

Docs. docs/evidence.md's Revit 2026 row still listed IsExternal on walls and curtain parts as not read. e99ff1a3 corrects it and names #1865 there and in the changelog fragment. It changes no code, so the gates verdict on 283c23b6 still covers the source.

@DrunkOnJava
DrunkOnJava marked this pull request as ready for review November 13, 2026 01:05
@DrunkOnJava
DrunkOnJava enabled auto-merge (squash) November 13, 2026 01:54
@DrunkOnJava
DrunkOnJava merged commit b411ca4 into main Nov 13, 2026
63 checks passed
@DrunkOnJava
DrunkOnJava deleted the fix/1860-wall-function-2026 branch November 13, 2026 01:56
DrunkOnJava added a commit that referenced this pull request Nov 13, 2026
## Summary

Release metadata for v0.20.0 (RELEASE.md, steps 4 to 7), cut from `main`
at `925c482d` and merged with `main` up to `58395b62` (#1855, #1860,
#1861, #1863, #1866, #1867 and #1868 among it):
- every version file moves to 0.20.0 (`tools/release/bump_version.py`),
and `CITATION.cff` is dated 2026-11-12;
- the fragments under `changelog.d/` are assembled into a `[0.20.0]`
section, with its introduction and "Upgrading from 0.19" (the
work-budget bullet says a stop warns and the export is still written, as
#1855 settled);
- the README's release lines name v0.20.0;
- Core Interior's two witness observations and verdicts, and the two
synthetic IFC fixtures, are taken from CI's artifacts for `e10580d0`:
only `witness_version`, the verdict hashes, the retired "Unmapped Revit
unit identifiers" warning (RE-445) and an unset transparency (#1820)
differ.

Measured and rehearsed:
- the comparison with 0.19.0 is in the section, from Measure runs
[43357862138](https://github.com/DrunkOnJava/rvt-rs/actions/runs/43357862138)
(unfiltered, `58395b62` against `v0.19.0`'s `09b18bd3`: 49 of 146
exports move, 0 census regressions, 0 body regressions) and
[43357979238](https://github.com/DrunkOnJava/rvt-rs/actions/runs/43357979238)
(timing: no file more than 3% slower except one that reads 0.98 in the
earlier run of the same code, no peak higher by more than 2%, the
samples of 2023 to 2027 at a median 0.76 times the peak memory). The
release adds only notes, witness files, version strings and fixtures to
`58395b62`, so a run of `main` is the run of the release; a run of this
branch would move every export through the header's version string;
- `publish.yml` rehearsal on `d9946f4b`:
[43359414819](https://github.com/DrunkOnJava/rvt-rs/actions/runs/43359414819)
passed. Only the changelog changed since.

**Why now.** `main` holds today's crafted-file and security fixes
(#1815, #1831, #1833, #1845), and neither GlobalId move. #1850 is back
in draft until the tag, and #1854's fix is #1859. Those two ship
together in 0.21.0 (#1854 comment 6841360704).

## Testing

- `python3 tools/release/changelog.py check` passes: no fragment is
left.
- `bump_version.py` checks the version files with the preflight's own
`check_versions`.
- The PII guard runs `release_preflight.py` on this PR.
- Timing against 0.19.0 is in the section, from run 43357979238 on
`58395b62`.

## Related issues

Release 0.20.0. Milestone `0.20.0`.
DrunkOnJava added a commit that referenced this pull request Nov 13, 2026
…at lose IsExternal between two saves and the curtain walls that hold them (#1865) (#1877)

## Summary

`probe_1865_curtain_is_external` names the curtain members that lose
`IsExternal` between two saves of one project, and the curtain walls
that hold them. It reads nothing new: it puts #1865's question to the
elements instead of to counts. Part of #1865.

## Motivation

On Autodesk's `rac_advanced` saved by Revit 2027, 79 curtain members get
no `Pset_MemberCommon.IsExternal` where the 2025 save writes it; the
2026 save writes all 3,192 (#1865, found by #1861's Measure). A curtain
member takes `IsExternal` from its curtain wall
(`attach_curtain_member_is_external`, RE-193, RE-269), and the 2027
export's diagnostics differ from the 2026 export's in one curtain-wall
line (`curtain_wall_box_not_read` 3), so the 79 may be the members of
three walls. `readers_across_saves.py` counts the 79; it does not name
them or their walls.

## Changes

- `probes/examples/probe_1865_curtain_is_external.rs` (new):
  - exports both files as `rvt-ifc` does;
- per curtain wall of each save prints its Tag, name and own
`IsExternal`, how many parts it has and how many carry an `IsExternal`,
then each part left without;
- from the element diff (`rvt::ifc::element_diff`, #1843) prints each
element whose `IsExternal` is written on the left and absent on the
right, with the curtain wall it is aggregated into on the right
(`wall=none` where into none), and what differs in the curtain walls
between the saves.

## Testing

Unit tests are banned in this repository: none added.

- [ ] A probe Measure run on Autodesk's samples (`samples=true`,
`sample_years="2025 2027"`, `probe_pair_release=2027`,
`models=core-interior`; the samples are Autodesk's and redistributable,
no held-out model is run):
[43379354161](https://github.com/DrunkOnJava/rvt-rs/actions/runs/43379354161)
on `4238f57b`. The rows it is read against were registered on #1865
before the run
([comment](#1865 (comment)));
the reading goes on #1865.
- N/A: no `src/` change, so no gates verdict and no witness replay.

## Audit-honesty checklist

- [x] 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
- [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] The probe under `probes/examples/` states its FACT

## 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.

## Related issues

Refs #1865 (the issue stays open until the 79 are fixed or stated as a
measured negative).
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