Skip to content

fix(ifc): Revit 2015 to 2023 walls write their Height where their record names nothing joined to or cutting them; their areas and volumes stay out (#1535) (RE-364) - #1578

Merged
DrunkOnJava merged 8 commits into
mainfrom
fix/1535-wall-quantities-2015-2023
Nov 9, 2026
Merged

DrunkOnJava merged 8 commits into
mainfrom
fix/1535-wall-quantities-2015-2023

Conversation

@DrunkOnJava

Copy link
Copy Markdown
Owner

Summary

Revit 2015 to 2023 walls write their Qto_WallBaseQuantities.Height again, where the wall's native record names nothing joined to or cutting it, as on 2024 to 2027. Their side areas, footprint and volumes stay out, as on main: the record box they would be measured on is not the body the 2024 save draws for 25 of those walls. This is the quantities half of #1535's done-when. RE-364 section 9 has the measurements.

Motivation

#1517's review narrowing (RE-364, 2026-11-08) left a 2015 to 2023 wall's Height, areas and volumes out, because the record's control joins read empty on those releases, "so what reads as uncut is not known to be". The uncut and whole flags do not come from the control joins. They come from the *Step classes of the wall's native record, and nobody had checked those on the old releases.

Changes

  • src/research/partition_schema_mvp/walls.rs: the uncut flag is set on 2015 to 2023, and the whole flag is still not (!narrow), with the reason in a comment. Height needs uncut alone (add_wall_height). The areas and volumes need uncut, whole and the join-trimmed box (add_wall_areas_and_volumes), so they stay out.
  • probes/examples/probe_1535_wall_steps.rs: lists each wall record's step classes and both flags, on any release.
  • tools/re/save_pair_wall_quantities.py (new): each wall's Qto_WallBaseQuantities in two rvt-rs exports of the same project from two Revit releases, paired by Tag. For a value only the older save writes, it compares the older save's GrossVolume with the volume of the later save's body.
  • tools/re/qtos_vs_ifc.py: also counts the values on a Tag that Revit's export gives more than one object, which it scores against one of them. tools/ci/scrub-holdout-results.sh keeps those two count lines (counts only, no Tag) in held-out results. Counting them apart in W7 is measure: W7 scores a Tag Revit's export repeats against one of its objects, so a split wall reads as different #1576.
  • reports/element-framing/RE-364-2015-2023-wall-lines-and-joins.md section 9, the addendum in docs/format-reconnaissance.md, docs/status.md, and changelog.d/added/1535-wall-heights-2015-2023.md.

Testing

Unit tests: N/A (banned). Everything below is end to end on real files.

  • Steps. probe_1535_wall_steps (Measure run 42562621272, on Autodesk's samples of every year): against the same project's later save, 2,894 of 2,896 walls hold the same step classes, and all 2,896 the same uncut and whole.
  • A trial head that wrote both (748eff3, archived at refs/archive/2026-11-09/1535-areas-trial-head; Measure run 42564158277, keep_ifc). save_pair_wall_quantities.py compared each of the 31 samples of 2015 to 2023 that have a 2024 save with that save:
    • Height: 781 equal and none different, on 200 walls across 30 saves. 7 sit on walls the 2024 save does not have. 10 that the 2024 save writes are not written: two curtain-gridded rme walls on four saves, and two rac_basic 2023 walls that save writes no quantities for.
    • Areas and volumes: 461 or 462 of each equal. 203 of each are written by the old save alone, on 25 walls the 2024 save draws from their centrelines (170 with layer joins, 33 without), and on all 203 the record box's GrossVolume differs from that body's volume, by 0.003 to 3.55 m3. One differs outright (wall 418079 of rac_basic 2015, whose box is thicker than 2024's). The step classes of those walls fall on 3 signatures, and every one also occurs on walls whose areas equal 2024's, so nothing in the record separates them. Hence whole stays off.
  • The landing code (8817a76; Measure run 42567326561 against main at 83417fd, unfiltered, with the samples, the BIM4LCA office, R2025, the held-out models, racadv and BIMcollab):
    • 45 of 118 exports move, all Revit 2015 to 2023, and the 73 others, every 2024 to 2027 export among them, are byte for byte main's.
    • same-project gates passes.
    • The scorers change only where a Height is added: modelo_bim (Revit 2023, IFC4, held out) 1 equal, none different. BIMcollab (IFC2X3) and bim-whale (IFC2X3, held out) have 88 and 151 that Revit's export does not write. Vitoria ALD26 Before has base quantities off, so its 97 are counted apart.
    • Warmond (Revit 2021, held out, its export passed through another tool): 91 equal and 45 different, 40 listed at exactly twice Revit's.
  • Warmond's 45 (Measure run 42569616611 on a8d3fdd, Warmond plus Einhoven and the 2024 to 2027 samples, same-project gates passing). Revit's export gives 84 walls' Tags to more than one object. On those Tags Height is 0 equal, 45 different and 39 missing, and on the walls it writes once, 91 equal and none different. So every difference is rvt-rs's whole wall scored against one piece of a wall Revit's export splits. The held-out file was not opened.
  • The later commits change only docs and the report (no src/ after a8d3fdd).

Audit-honesty checklist

  • No Revit export of Autodesk's samples exists, so an error the 2024 save shares is not caught. The PR, the report and the fragment say so.
  • What stays out (areas, volumes, footprint, Length) and why is in the code comment, the report and the fragment.
  • A user-visible change has its fragment; docs/status.md names the new Height and what is still left out.
  • RE finding: probe under probes/examples/, report section, dated addendum in docs/format-reconnaissance.md.
  • No emojis, private paths or PII. Held-out models appear as counts only.

Legal and contribution hygiene

  • Apache-2.0.
  • Clean room (CLEANROOM.md): this work uses only public byte observations of Autodesk's sample projects, rvt-rs's own exports, and Revit's IFC exports as scored by Measure. No Autodesk or ODA SDK source, disassembly, leaked or NDA material.

Breaking changes

None. A Revit 2015 to 2023 export gains Qto_WallBaseQuantities.Height on walls whose record names nothing joined to or cutting them. --no-base-quantities leaves it out with the rest.

Part of #1535 (its quantities item).

…elease, to compare 2015 to 2023 saves with 2024's (#1535) (RE-364)
…volumes again, since their records hold the steps their 2024 saves do (#1535) (RE-364)
…ce 28 are drawn with their layers' joins on their later saves (#1535) (RE-364)
…export gives more than one object, and held-out results keep the count (#1535)
…ve, wall by wall, and the status and fragment for 2015 to 2023 Heights (#1535) (RE-364)
…d to the 2024 saves and to Revit's exports, and why its areas stay out (#1535)
@DrunkOnJava
DrunkOnJava merged commit 78ecc13 into main Nov 9, 2026
36 checks passed
@DrunkOnJava
DrunkOnJava deleted the fix/1535-wall-quantities-2015-2023 branch November 9, 2026 06:42
DrunkOnJava added a commit that referenced this pull request Nov 9, 2026
… each export reaches (#1418) (RE-337) (#1579)

## Summary

RE-337 gains a dated section 6 for the paths it listed as not measured.
The section reads each path against the wall-end code RE-348 (#1410)
left, and measures each on all 111 exports of Measure run
[42567326561](https://github.com/DrunkOnJava/rvt-rs/actions/runs/42567326561)
(base side, `main` at `83417fde`). `docs/export-diagnostics.md` now
lists every case `joined_wall_not_read` covers, and says the decisions
log leaves out the unmarked reads. Docs only: no code or output changes.

## Motivation

#1418 asked for two things:

- the wall beneath drawn as a solid becomes a counted reason,
`wall_beneath_is_a_solid`, in `exported.wall_end_refusals` and the
decisions log;
- the paths with no measured instance are each exercised on a real model
or a synthetic fixture, and any path with no model is stated as
unmeasured in RE-337.

RE-348 rewrote the rule after the issue was filed. The end now follows
the walls the record joins at that end, in the record's order, rather
than one wall beneath. Where each part of the issue stands on `main`:

- **Solid joined wall: counted, under RE-348's reason, not a reason of
its own.**
- `followed_wall` reads a joined wall only as its plan's prism or as
RE-320's stepped body.
- Any other wall the list reaches while height is still to be read
refuses the end as `joined_wall_not_read`. That covers four cases: a
wall drawn as another kind of solid, a wall whose base join names
elements, an ElementId that more than one entity holds, and an element
not exported as a wall.
- It is counted in `exported.wall_end_refusals`, with a decisions-log
entry, only where a joined wall read earlier showed the end short of its
face. Otherwise it is counted in `exported.wall_end_reads_unmarked`,
which the decisions log does not hold. That is RE-348's marker policy: a
wall carries a refusal only where the record shows its end is wrong.
- On the office's own lists, a solid wall beneath would be marked on 3
of the 8 ends and counted unmarked on the other 5.
- This PR does not split out `wall_beneath_is_a_solid`. It would be a
new reason that no export produces, and the rule now reads joined walls,
not a wall beneath.
- **Still uncounted: a wall in the way that the rule does not read.**
- `in_the_way` searches only the walls the rule reads. A wall of any of
the four cases above, standing in a strip but not joined there, is not
found, and the strip would be drawn through it.
- This is RE-337 section 5's last item, unchanged, now stated in section
6 and in the `wall_stands_in_the_added_end` row of
`docs/export-diagnostics.md`.
- **`walls_beneath_reach_the_end_at_different_faces` is gone.** RE-348
counts order-dependent ends instead of refusing them.
- **`base_cut_lost_on_extended_plan` and `finish_wall_ends` are
reachable and unexercised.**
- `base_cut_lost_on_extended_plan` fires when the cut of the base
resolves on the record's plan but not on the longer one. For example,
the strips reach a second element that covers part of the plan.
- `finish_wall_ends` runs on a drawn end with a strip below the top and
no base join.

### Measured

Base side of 42567326561: 93 openly licensed exports and 18 held-out
(counts only).

| | Exports |
|---|---|
| Revit 2024 saves, the only release whose end lists the rule reads
(`WALL_END_JOIN_REVIT_VERSIONS`) | 15 of the 93 |
| ... with a wall with an edited elevation profile (upper bound, method
in RE-337 section 6) | at most 8 |
| ... where the rule draws, keeps or counts an end | 3: the office as
built and at permit, Snowdon Towers Architectural |
| Held-out exports with any wall-rule count | 0 of 18 |
| Exports with `joined_wall_not_read` or
`base_cut_lost_on_extended_plan` | 0 of 111 |

The 8 walls whose end is drawn (4 on each office file) all also carry
`BodyBaseSource`, so `finish_wall_ends` made no body on any export.
Since `83417fde`, `main` has changed `src/` only through #1578, which
works on Revit 2015 to 2023 walls, so the end rule (Revit 2024 only) is
unaffected.

### Why no synthetic fixture

The pass runs inside `append_typed_production_elements`. Its inputs come
from a Revit 2024 file's element records and native wall records: the
profile openings from `GLine`s, the join trims, and the `JoinEndGStep`
lists. `gen-fixture` writes no element records; its files decode as a
scaffold. The pass is also private to the exporter. Driving it on
constructed entities would be a unit test of a geometry transform,
checked against the code itself rather than against a Revit export, and
CONTRIBUTING.md does not accept those. So the three paths stay stated as
unmeasured until a Revit 2024 model reaches them.

## Changes

- `reports/element-framing/RE-337-wall-ends-at-the-base-wall.md`:
section 6, with the counts, the reasoning above and reproduce commands;
the "Superseded in part" line points to it. Sections 1 to 5 are
unchanged.
- `docs/export-diagnostics.md`: the `exported.wall_end_refusals` row now
lists every case `joined_wall_not_read` covers, says which walls
`wall_stands_in_the_added_end` cannot see, and gives the 111-export
count. The `exported.wall_end_reads_unmarked` row says the decisions log
leaves these reads out.
- `changelog.d/research/1418-wall-end-unmeasured-paths.md`.

## Testing

Unit tests are banned in this repository: do not add them. Show the
change working end to end on real files instead.

- [x] `tools/check-local.sh` passes: N/A, docs only. `python3
tools/release/changelog.py check` and `python3 tools/ci/api-doc-ids.py`
pass.
- [x] Verified end to end on real Revit files: the counts come from the
run's per-model `wall_rules.txt`, `info.json` and kept `model.ifc`.
RE-337 section 6 gives the dispatch command.
- [ ] If this touches the IFC exporter: N/A.
- [ ] If this is a performance change: N/A.

## 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/<section>/`
- [ ] If a limitation was resolved: N/A, none resolved
- [x] If a new limitation was introduced: none new; the wall-in-the-way
gap from RE-337 section 5 is restated
- [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
- [ ] If this is a reverse-engineering finding: N/A, no new format 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 (no format bytes are read here; held-out
models appear as counts only)
- [x] Any new test fixtures use synthetic values: N/A, no fixtures

## Breaking changes

None.

## Screenshots or output samples

N/A: no output changes.

## Related issues

Refs #1418. For the three paths no model reaches, this PR meets the
done-when's last sentence: each is stated as unmeasured in RE-337, with
the measurement behind that. The named reason `wall_beneath_is_a_solid`
is not added (see Motivation), so the PR does not close the issue.
DrunkOnJava added a commit that referenced this pull request Nov 9, 2026
… it runs on redistributable models only (#1535) (#1580)

## Summary

`tools/re/save_pair_wall_quantities.py` (added in #1578) prints wall
Tags in its `different:` and `unchecked:` lines. Its docstring now says
it runs on redistributable models only, never on a held-out model, and
that it is not wired into Measure's held-out run. Docstring only.

## Motivation

This follows a non-blocking note from the review of #1578. A held-out
model's ElementIds stay out of public text, and the held-out scrub
(`tools/ci/scrub-holdout-results.sh`) keeps count lines only. The scorer
is safe today because nothing runs it on held-out files. The docstring
now states that rule next to the code that would break it.

## Changes

- `tools/re/save_pair_wall_quantities.py`: one paragraph in the module
docstring.

## Testing

Unit tests are banned in this repository: do not add them. Show the
change working end to end on real files instead.

- [x] `tools/check-local.sh` passes: N/A, docstring only. The file
parses (`ast.parse`), and its usage text, which is printed from the
docstring's `Usage:` part, is unchanged.
- [ ] Verified end to end on real Revit files: N/A, no behaviour change
- [ ] If this touches the IFC exporter: N/A
- [ ] If this is a performance change: N/A

## Audit-honesty checklist

- [x] README / docs reflect the current state after this PR
- [ ] A user-visible change has its entry as a fragment: N/A, an
internal tool's docstring
- [ ] If a limitation was resolved: N/A
- [ ] If a new limitation was introduced: N/A
- [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
- [ ] If this is a reverse-engineering finding: N/A

## 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] Any new test fixtures use synthetic values: N/A

## Breaking changes

None.

## Screenshots or output samples

N/A.

## Related issues

Refs #1535 (follows #1578).
DrunkOnJava added a commit that referenced this pull request Nov 9, 2026
…export gives more than one object (#1576) (#1581)

## Summary

`tools/re/qtos_vs_ifc.py` and `tools/re/psets_vs_ifc.py` stop scoring a
Tag that Revit's export gives more than one object against whichever
piece their dict kept (#1576). A quantity on such a Tag, and a property
whose pieces hold different values, are counted apart: in none of equal,
different and missing. A property whose pieces hold one value is scored
against the piece held, as before, and a line beside the totals counts
it.

## Motivation

Revit's export writes a wall it splits at its storeys as several objects
under one Tag, the wall's ElementId. Both scorers key every object by
Tag in a dict, so one piece's values stood for all of them. For
quantities that is wrong: a piece's `Height`, areas and volumes are not
the whole wall's, which is all rvt-rs writes for the element. On the
held-out Warmond (Revit 2021, counts only), #1578's count showed that
all 45 different wall `Height`s sit on the 84 walls Revit's export
repeats: 0 equal, 45 different and 39 missing there, against 91 equal
and none different on the walls it writes once. 40 of the 45 that the
scrubbed output lists are exactly twice Revit's. The property census had
the same hole where the pieces of a Tag hold different values for a
property: which one it scored against was an accident of the dict.

## Changes

- `tools/re/qtos_vs_ifc.py`:
- A value on a repeated Tag is counted in `apart` and skipped: it is in
none of equal, different and missing, in the "known to be wrong" and
"counted apart" classes already there, or in the rvt-rs values Revit
does not write (those it has none for in the piece held are counted in
the same line).
- One line gives the count (`values on a Tag Revit's export gives more
than one object, counted apart (#1576): N of Revit's on M such Tags, and
K of rvt-rs's with none in the piece held`), and one line per quantity
gives it with what it would have scored against the piece held. That
breakdown is not in the totals.
- It replaces the two lines #1578 printed, which scored these values
against one piece.
- `tools/re/psets_vs_ifc.py`:
- It keeps every piece's value of a property on a repeated Tag. Where
they differ (`same` to 1e-5), the value is counted apart, in none of
equal, different and missing: no piece stands for the element. The line
is `values on a Tag Revit's export gives more than one object, whose
pieces hold different values, counted apart (#1576): N on M such Tags`,
with one line per property.
- Where the pieces hold one value it is scored against the piece held,
as before, and one line says how many values that is and how they score.
- `tools/ci/scrub-holdout-results.sh`: the held-out scrub allows the new
count formats (fixed text and digits only, inside the anchored `^(...)$`
match) and no longer the two from #1578.
- `docs/release-1.0-criteria.md`: the paragraph on how W7 is measured
names both classes, and the office's quantity and property counts it
cites are the new scorers'.

## Testing

Unit tests: N/A. Everything below is end to end.

- **Local, synthetic.** Core Interior's rvt-rs export (from Measure run
42571962248) scored against a copy of itself in which three pairs of
walls share a Tag. Quantities: the old scorer counted 2,549, 3 missing,
and one `Width` apart as a different type; the new one counts 2,544,
none missing, and 6 values apart on 3 Tags (`Height` 3 missing against
the piece held, `Width` 2 equal and 1 different). Properties: `main`'s
scorer gave 4,159 values, 4,155 equal and 4 different; the new one gives
4,155, all equal, with 4 values on 1 Tag counted apart (the pieces of
that Tag are two different walls) and 14 on 3 Tags scored against the
piece held. The held-out scrub, run on those outputs, keeps the new
lines and nothing with a Tag in it.
- **Measure, the same code with each side's scorers.** `main` at
50e22fc, every model (samples of every year, the BIM4LCA office, the
Revit 2025 models, held-out, `racadv` and BIMcollab): run
[42576079664](https://github.com/DrunkOnJava/rvt-rs/actions/runs/42576079664)
with `main`'s scorers and run
[42578988937](https://github.com/DrunkOnJava/rvt-rs/actions/runs/42578988937)
with this branch's (at ab56307b; the later commits change no scorer).
All 2,683 files of the two runs are byte for byte equal except the
quantity and property scorers' outputs of 34 models, the held-out counts
files, and logs and runner records: every `ifc.sha256` is equal, so no
export moves.
- **What moves in W7's counts** (each value that moves was *missing*,
unless said; nothing goes from equal or different to missing anywhere):
- Quantities, 17 open models: BIM4LCA office as built and at permit, 10
values on 9 Tags each (missing 10,002 to 9,992 of 39,764 to 39,754 as
built; 9,978 to 9,968 of 40,016 to 40,006 at permit; equal 29,761 and
30,037 and different 1 as before); its two terrain variants, 10 on 5
each; 13 of puzzbobb's Revit 2025 models (roofs, rooms and stairs), 8 on
1 Tag each.
- Quantities, 10 held-out models (counts only): Warmond 504 values on
131 Tags (equal 363 to 279, different 50 to 5, missing 2,999 to 2,624;
the walls' `Height` 91 equal, 0 different, 90 missing of 181 on the
walls Revit writes once); `modelo_bim`, the four `rvt-holdout` files of
2024 to 2027 and the four `rvt-holdout-office` files of 2024 to 2027, 9
or 10 values on 1 Tag each. No other model holds a quantity on a
repeated Tag.
- Properties: BIM4LCA office as built, 12 values on 6 Tags
(`Pset_SpaceCommon.Reference` and
`Pset_SpaceHeaterTypeCommon.Reference`, 6 each): 6 had scored equal and
6 missing, so equal 44,428 to 44,422, missing 1,381 to 1,375, of 45,810
to 45,798; at permit equal 44,577 to 44,571, missing 1,391 to 1,385, of
45,969 to 45,957. Held-out bim-whale (Revit 2021): 30 values on 10 Tags,
all missing, so missing 5,924 to 5,894 of 9,337 to 9,307; its 2
different values on repeated Tags stay, because their pieces agree. On
every other model no property's pieces disagree and the totals are
unchanged.

## Audit-honesty checklist

- [x] The scorers' output only changes; no export changes (every
`ifc.sha256` equal across the two runs).
- [x] What moves in W7's counts is listed under Testing, and the
criteria page's counts are updated.
- [x] No emojis, private paths or PII. Held-out models appear as counts
only.

## Legal and contribution hygiene

- [x] Apache-2.0. No Autodesk source, internals or NDA material.

## Breaking changes

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