Skip to content

feat(ifc): a door or window set in a plain wall is placed on Revit's axes, its X the stored one reversed where the flips differ (#1447) (RE-347) - #1456

Merged
DrunkOnJava merged 11 commits into
mainfrom
research/1447-door-window-placements
Nov 5, 2026
Merged

DrunkOnJava merged 11 commits into
mainfrom
research/1447-door-window-placements

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Nov 5, 2026 •

Copy link
Copy Markdown
Owner

Summary

Measures what rvt-rs writes for the local axes of doors and windows against Revit's (#1447, RE-347), and writes Revit's axes for those set in a plain wall.

Before (Measure 42066757105): rvt-rs wrote the default axes on every door and window. Revit's were the same on 115 of the 521 doors and 226 of the 540 windows it binds to a plain wall in the open models (Core Interior, RE1 Architecture, the BIM4LCA office as built and at permit; the same elements as RE-343's Rule 1), and differed on 406 doors and 314 windows. rvt-rs writes no OperationType, so the placement's +Y is the only statement in the file of which way a door faces.

The rule (RE-343 Rule 1): for a door or window set in a plain wall (its host a non-curtain wall whose native record gives a straight level line the stored X runs along, |cos| at least 0.999), the placement's X and Y are the stored axes, both reversed where m_hand_flipped differs from m_facing_flipped; Z stays up; the origin is unchanged. Doors bound to none, elements with no stored transform (Revit 2023 and older) and instances that already take the turned box (RE-87; 0 of the 27 turned plain-walled instances in the 2024 to 2027 samples have unequal flips) keep what they write today.

After, on head c1a2a739 (Measure 42106711251, unfiltered, base=main, probe, samples 2024 to 2027, every job succeeded):

  • The rule is written for 1,061 of 1,061 bound doors and windows in the open models, all 24 doors and windows of the R2025 models and 145 of 146 in the held-out models of 2024 to 2027 (counts only), and differs from Revit's on 0. The new default scorer door_axes_vs_ifc (no probe) says so per model; it exits 0 on all 52 models that have a Revit export.
  • Base against head, the only scorer outputs that differ are that scorer's, the held-out door axes: lines, the gate's doors and windows lines and the two Core Interior witness observations. Every other scorer output in the default suite is identical.
  • Core Interior's witness observations (both artifacts) move by IFCDIRECTION 1037 to 1135 and IFCPROPERTYSINGLEVALUE 27824 to 27962 and nothing else; they are refreshed from the run, and witness-verdict.py replayed with CI's arguments is PASS for both.
  • The semantic diff saw dumps on all 35 models that have one; on Core Interior, RE1, the office files and R2025 model 12 the only findings are PlacementAxesSource and rotation_degrees appearing on doors and windows.
  • Export time, base against head, one run each: open models mean 1.007, samples 0.975 to 0.991 (runners differ, so a cost under about 2 percent is not resolved). Memory was not measured.

Bodies and openings do not move: on Core Interior, RE1 Architecture and the two office files (tools/re/placed_bodies_vs_base.py), as saved meshes (Measure 42092391898) and as record boxes (--no-saved-meshes, Measure 42106731054: every door and window is an extruded rectangle, 59 and 133 sides swapped on the quarter turns), 0 bodies and 0 openings moved in world coordinates (largest vertex difference 0.000000 ft), no GlobalId, type GlobalId or host changed.

Same-project check (bodies_across_saves.py, same-project gates success on 9 samples): 107, 79 and 65 doors and windows of rac_advanced (2025, 2026, 2027) and 17 each of rac_basic are held to the 2024 save, 66, 44, 31 and 14, 14, 14 of them off the default axes, all the same. Two buildings, each saved by three releases; rst_basic has none. 28 and 42 elements the 2024 save places by the rule stay on the default axes in the rac_advanced 2026 and 2027 saves: the host rebind of RE-245 runs on CUT_LOOP_REVIT_VERSIONS (2024 and 2025) only, and on 2027 14 more are set in 8 host walls with no native straight-line row (#1475). The gate holds floors per class, project and year (2025 included, from this run's counts) and a ceiling per year on those left out, which can only shrink; #1454 widens the version list and should place the 28. The floors for 2025 changed the gate file after run V2, so the verdict is the samples-only run 42116283678 on the merged head 5edea997, pending.

rme_advanced and rme_basic are not in the gate. Each holds 107 rule-placed doors (59 with unequal flips) and their 2026 and 2027 saves are held to nothing: their pipes do not pass the gate before #1454. Whichever of #1454 and #1456 lands second adds rme to the doors and windows group in tools/re/bodies_across_saves.py, with floors and ceilings.

Motivation

#1447: RE-343 (#1438) measured Revit's placement axes against the stored axes and left what rvt-rs writes unmeasured. The origin, which differs from Revit's by more than 0.5 ft on almost all, is a separate finding and is not moved here (#1465).

Changes

  • src/research/partition_schema_mvp/ (fields.rs, walls.rs, openings.rs, the decode flow): a straight wall's native direction, and for each door and window set in such a wall the plan direction of Revit's placement X, after the host and flips are final.
  • src/ifc/export_content.rs: a door or window carrying that direction is rotated to it (a quarter turn swaps the box's two sides, so its world extents are unchanged) and says so in RvtElementRecordGeometry.PlacementAxesSource. Everything downstream (opening cuts, saved meshes, family extrusions, wall-cut openings) already composes the element's rotation, as for a turned instance. rotation_deg (elements CSV, the viewer's schedule and info panel) and rotation_degrees (MCP get_element) are now set for these elements not on +X, and on a box-bodied one width_ft and depth_ft swap on a quarter turn: width is now along the placement's X, the door's width. No test pins either column.
  • tools/re/door_axes_vs_ifc.py: probe-free, in Measure's default list, kept for held-out models by the scrub. tools/re/door_placements_vs_ifc.py (the probe's scorer) explains a row by flips and binding. tools/re/placed_bodies_vs_base.py: the world-coordinate check between two exports. tools/re/bodies_across_saves.py: the doors and windows group (it already compares placement axes and world vertices by Tag; readers_across_saves.py of feat(ifc): Revit 2026 and 2027 pipes, ports, door and window cuts and the 2025 properties are read as on 2025 (#1190) (RE-346) #1454 holds readers' values).
  • docs/status.md, docs/support-matrix.json, docs/maintaining.md, docs/user-guide.md, tools/ci/check-bodies-across-saves.sh, the report reports/element-framing/RE-347-door-window-placement-axes.md, a changed/ changelog fragment, RE-343's caveat now pointing at RE-347, both Core Interior witness observations and a dated note in both count fixtures.

Testing

  • tools/check-local.sh: not run (no local builds); CI is the build.
  • End to end on real files: the Measure runs above, the world-coordinate check on their kept IFCs, and the witness replay. The samples-only verdict run on the merged head is pending.
  • Held-out data is counts only.

Audit-honesty checklist

  • Not measured: Snowdon Towers against Revit's export, and the memory of the added read of the stored transforms.
  • The 160 doors bound to none (49 inverted by IfcDoorType), a curved wall and a turned instance with unequal flips (none in the samples) keep what they write.

Related issues

Refs #1447
Refs #1465
Refs #1475

…rs and windows, against Revit's, by flip state and wall binding (#1447) (RE-347)
…r and window; Revit's differ on 406 of 521 doors and 314 of 540 windows bound to a plain wall (#1447) (RE-347)
@DrunkOnJava DrunkOnJava changed the title research(openings): a scorer for the local axes rvt-rs writes for doors and windows, against Revit's (#1447) (RE-347) research(openings): rvt-rs writes the default local axes on every door and window; Revit's differ on most bound to a plain wall (#1447) (RE-347) Nov 5, 2026
@DrunkOnJava DrunkOnJava changed the title research(openings): rvt-rs writes the default local axes on every door and window; Revit's differ on most bound to a plain wall (#1447) (RE-347) feat(ifc): a door or window set in a plain wall is placed on Revit's axes, its X the stored one reversed where the flips differ (#1447) (RE-347) Nov 5, 2026
# Conflicts:
#	tools/re/bodies_across_saves.py
…thin 0.999, a default scorer holds rvt-rs's door and window axes to Revit's, and the gate's floors are per year (#1447) (RE-347)
DrunkOnJava added a commit to puzzbobb/rvt-rs that referenced this pull request Nov 5, 2026
… and centre, holds the MEP samples' sketch outlines, and names its door check apart from DrunkOnJava#1456's (DrunkOnJava#1190) (RE-346)

A floor Revit writes as several products under one Tag carries a derived GlobalId on all but the first, which differs between two saves: pairing by GlobalId crossed rme_advanced's and rme_basic's slabs and comparing the GlobalIds failed each. The MEP samples' 78 outlines each are equal to their 2024 saves' once paired by what they are. OUTLINE_LEAST gains the MEP samples. The door and window size check prints under its own name.

Refs DrunkOnJava#1190
@DrunkOnJava DrunkOnJava added the ready-when-green Draft whose code is complete: marked ready for review once its fast CI passes label Nov 5, 2026
@DrunkOnJava
DrunkOnJava marked this pull request as ready for review November 5, 2026 21:54
@DrunkOnJava DrunkOnJava removed the ready-when-green Draft whose code is complete: marked ready for review once its fast CI passes label Nov 5, 2026
@DrunkOnJava
DrunkOnJava enabled auto-merge (squash) November 5, 2026 22:27
@DrunkOnJava
DrunkOnJava merged commit df96767 into main Nov 5, 2026
45 checks passed
@DrunkOnJava
DrunkOnJava deleted the research/1447-door-window-placements branch November 5, 2026 22:37
DrunkOnJava added a commit to puzzbobb/rvt-rs that referenced this pull request Nov 5, 2026
…eaders (DrunkOnJava#1190)

Takes DrunkOnJava#1456's doors and windows group beside the pipes group, adds rme_advanced and rme_basic to it with floors and ceilings for each year, lowers rac_advanced's left-out ceilings to 0 on 2026 and 14 on 2027 now that the cut pass that reads the flips and rebinds the host runs on 2026 and 2027, and counts the group in the run summary.
DrunkOnJava added a commit to puzzbobb/rvt-rs that referenced this pull request Nov 5, 2026
… windows group's floors and ceilings (DrunkOnJava#1190)

The group's numbers were what the cut pass of 2024 and 2025 placed; they are what the 2024 save places now, and rac_advanced's and the MEP samples' are set from DrunkOnJava#1456's diagnosis for the Measure run of the merged head to confirm.
DrunkOnJava added a commit to puzzbobb/rvt-rs that referenced this pull request Nov 5, 2026
…out, as run 42124273032 counted (DrunkOnJava#1190) (RE-346)

The prediction from DrunkOnJava#1456's diagnosis was 69 doors and 14 left out. The run counted 68 doors and 24 windows compared and 15 doors left out, all in the 8 host walls of DrunkOnJava#1475, 14 with a frame that differs from the 2024 save's and one with the same frame. The rme saves (107 doors, none left out, 75 off the default axes each year) and rac_advanced 2026 (83 doors, 24 windows, none left out) were as predicted.
DrunkOnJava added a commit that referenced this pull request Nov 6, 2026
…y read, and CI reads the current copy rule (#1368) (#1481)

## Summary

With `--element-provenance`, the table now names the records behind a
wall's layers (`wall_type_layers`), a beam or column drawn as its type's
I section (`type_i_section`), an Area's Levels (`area_levels`), a tread
landing (`native_landing_type`, `native_run_type`) and a spiral run
(`native_run_type`). CI's gate also reads the BIM4LCA office at building
permit, the one model of 92 with the `current` copy rule. The export is
unchanged; only the provenance table gains sources.

Closes #1368

## Motivation

#1368 left the profile copies and the landing thickness as "no source
yet", listed four more values with no reader, and said no CI model
exercises `current`. All three are answered below with the run and head
each figure was measured on.

## Measured

- Counts on main before this change: Measure run 42111951132 (main at
d2439b0; `-f samples=true -f nordic=true -f r2025=true -f
ifc_flags=--element-provenance -f scorers=none`, no `models` filter
because it is the one run that answers which model exercises `current`).
92 models: Core Interior, Einhoven, 4 RE1, 4 BIM4LCA office files, the
24 Revit 2025 models of puzzbobb's three pinned archives, 58 Autodesk
samples. The held-out models, BIMcollab and the `racadv` models were not
fetched.
- The same run shape on this head, after #1450 (run 42118489328,
ee449c3): `selected_frame_box` on 0 of 92 (the profile-copy gap is
empty; the doc row is now the stated fallback). `current` on 1 of 92,
the office at permit (`sketch_lines` 3, `sketch_list` 1); the 2021
`rac_advanced` has none, its 25 Areas read `area_plan_topology`;
`instance_transform`, `sketch_line_data` and `roof_line_data` have none
anywhere. New sources: `wall_type_layers` 1,973 elements on 29 models,
`area_levels` 483 Areas on 17, `type_i_section` 557 elements on 5
(Autodesk's `rstbasicsampleproject` 2024 to 2027 and Snowdon structural;
none on a CI gate model), `native_run_type` 84 on 17,
`native_landing_type` 82 on 8.
- The default export is unchanged: run 42118484766 (ee449c3, `-f
samples=true -f sample_years="2024 2027" -f
scorers=bodies_across_saves`, no `ifc_flags`, against main) has the
`ifc.sha256` of all 31 exports (Core Interior, Einhoven, 4 RE1,
Autodesk's samples 2024 to 2027) identical on both sides, and its
`same-project gates` check run on ee449c3 is a success (the neutral one
on that commit is the `ifc_flags` run's). The two MCP-text and doc
commits after it change no `src/`.
- Run 42115109274 (b4d34de, flag on both sides): hashes of Core
Interior and the office as built and at permit equal; `native_run_type`
0 to 2 and `native_landing_type` 21 to 22 on both office files.
- Corpus health, which runs `tests/value_sources_offsets.rs` on the
permit office and the new readers, passed on bd3466c. The second read's
fixes after it (d303289: the rule, the stricter test, the docs) have
not been through the full CI.
- On d303289, the final head: run 42128212880 (`-f base=main -f
samples=true -f sample_years="2024 2027" -f
scorers=bodies_across_saves`, no `ifc_flags`) has the `ifc.sha256` of
all 31 exports identical to `main`'s, and its `same-project gates` check
run on d303289 is a success.

## Second read (d303289)

- A Level's block (`level_block`) and an Area's Levels (`area_levels`)
are rule `frame`, not `agreeing`: `scan_partition_levels` keeps each
Level's newest partition and never compares older copies (RE-107); on
the office at permit Level 1338637 is `02a_P-talo 2` in Partitions/340
and `Level_02a_Parking` in Partitions/405. `docs/export-diagnostics.md`
says so.
- `tests/value_sources_offsets.rs`: `REQUIRED` makes the new readers
required per `BodySource` (not any-of); `CURRENT_PINS` pins at least 3
`sketch_lines` and 1 `sketch_list` on the permit office; a Level's block
decoded again at its offset must give the elevation of a storey the
export writes where it is a building story; a wall type's layers read
again must add up to the thickness of a layer set the export writes. Not
compared: the numbers of the other parts (an I section's dimensions, a
hollow section's, a pipe's points) and which Level an Area's base is; no
gate model has an I section, so that check would not run in CI.
- `wall_type_layers` is noted where the wall's thickness is set, not
only where its layers are, so a wall drawn at its type's thickness is
sourced even when its bands are empty.
- The fragment says "of the four values #1368 listed"; the docs name the
wall row's other unlisted inputs, the I-section row's 557 Measure
elements and the area-point row's `area_levels`.
- The CI cache is not changed: the permit file's entry in
`research/bim4lca-models.tsv` changes that key (the whole folder is
saved again, 293 MB to about 371 MB, and the first run downloads from
the VTT host); Measure's `bim4lca-measure-<hash>` entry is
path-versioned (`_bim4lca-measure`), so reuse means a restore-only step
and a hardlink, with a one-entry fetch as the fallback. Not done unless
asked.
- No `src/` outside the provenance path changed in this commit (the two
labels are inside `if recording`, the wall note is behind
`attribute_value_source`), so no new verdict run: the verdict on
ee449c3 stands, and the merge of main was clean.

## Residuals for the follow-up (not what #1368 listed)

Filed as #1498. Inputs of the bodies with no source, so none of them is
claimed as sourced:
- A rectangular column's two sides (a decision: they only gate whether
its box quantities are written).
- #1456's `PlacementAxesSource`: a door or window's rotation from
`instance_transform` is noted but filtered out, because `RECORD_BBOX`
lists only `selected_frame`; the wall's native line and the two flips
have no source.
- #1470's `m_realJoined` and its `Compound` pieces.
- A wall's top, base and end rules, its orientation and flip, a tapered
wall's face angle, the partner lists of its joins and the layers and
frames of the walls it joins; a beam's rotation; cut-loop sizes.
- The numbers of the parts the test does not compare (above).

## Changes

- `src/reader.rs`, `src/research/native_stairs.rs`:
`attribute_value_sources` builds one source from several records and
notes none if one is missing; tread landings and spiral runs use it for
their run types. All calls return at once when the handle records no
sources.
- `src/research/partition_schema_mvp/walls.rs`,
`src/ifc/element_provenance.rs`: a wall's type layers (the same
`type_layers` note a roof's use) go to the wall; `SectionShape` `I` lets
`type_i_section` list for a beam.
- `src/research/partition_level_records.rs`,
`src/research/partition_area_records.rs`: `scan_partition_levels` notes
each Level's newest block (`NameElevationBlock` gains an `offset`); an
Area lists the block of every Level its base and height compare.
- `rvt-mcp/src/schema.rs`: the description no longer says "Absent for a
body no reader notes yet"; `docs/mcp-tools.*` came from CI's artifact
(23fec52).
- `tests/value_sources_offsets.rs`: coverage and `MIN_READERS` for the
new readers; a part of `native_run_type`, `native_landing_type` or
`wall_type_layers` is read at its bytes; an Area's `area_levels` parts
must be all the file's Levels; the permit office is a gate model with
`CURRENT_PINS`.
- `research/bim4lca-models.tsv`, `corpus/tier2/README.md`,
`docs/reference-models.md`: CI fetches the permit office (78.3 MB, same
pin as `research/bim4lca-measure.tsv`).
- `docs/export-diagnostics.md`, changelog fragment: rows, counts, and
the one value without a source.

## Testing

- [ ] `tools/check-local.sh`: not run locally (no local builds); the
draft's fast jobs and the full CI are the gate.
- [x] Measured on real files: the runs above.

## Audit-honesty checklist

- [x] A rectangular column's two sides have no source, by decision: they
only gate whether its box quantities are written, no number of the
type's is written, and the docs say so.
- [x] Changelog fragment
`changelog.d/changed/1368-tread-landing-and-spiral-run-sources.md`
- [x] No emojis, no private paths

## Legal and contribution hygiene

- [x] Apache-2.0; no Autodesk source. The permit office is CC BY-SA 4.0
and fetched, never committed.

## Breaking changes

None to the export. `NameElevationBlock` (research API) gains a field.
DrunkOnJava added a commit that referenced this pull request Nov 6, 2026
…ead on selection (#35) (RE-207) (#1468)

## Summary

The viewer's info panel lists a selected element's saved parameters
(RE-207): instance, then type, named ones first, nameless ones behind a
fold grouped by why they have no name (#255), each row saying where its
parameter is defined. They are read for that element only, on selection,
by a new `savedParameters` binding in a worker of its own; the open and
every export are unchanged. File Status's Parameters row no longer says
the rest are "still to be decoded".

**Nothing is requested once the first file is open** (Griffin,
2026-11-05, "Keep the claim, no request"): selecting an element,
exporting IFC, plan or glTF, and opening the file again fetch nothing,
and a page taken offline after it loaded does all of them.

## Motivation

The last open acceptance item of #35 that is not blocked: "Viewer info
panel displays them in readable form". The CLI, Python and IFC
(`--revit-property-sets`) expose the saved parameters; the viewer showed
a count and a sentence that RE-207 had already made wrong.

## Changes

- `rvt-wasm/src/lib.rs`, `rvt-wasm/Cargo.toml`, `Cargo.lock`:
`savedParameters(bytes, ids, limits)` returns JSON text: each entry is
`serde_json::to_value` of the parameter
`native_element_parameters::read` gives, the call `rvt-elements` makes,
with the release and how far it is read. `rvt` gets `unstable-research`
here, which "adds paths and changes nothing else" (`src/research.rs`);
no file under `src/` changes, so no export can move, and `arm.sh`'s
`src/` gate path does not match `rvt-wasm/src/`. **The result's keys are
a 1.0-stable surface** (`RELEASE.md`): `release`, `release_read`,
`release_experimental`, `releases_read`, `releases_measured`,
`elements`, `unresolved_family_slots`,
`instance_parameters_without_value`. I chose them to say what they mean
(not the research module's "native"): the read range, the measured range
(Revit 2015 to 2022 are read experimentally, RE-281), and what could not
be listed. `ids` is a `Float64Array`.
- `viewer/src/parameters-worker.ts`, `viewer/src/saved-parameters.ts`,
`viewer/src/wasm-failure.ts` (new; the out-of-memory test both workers
use), `viewer/src/worker.ts`, `viewer/src/main.ts`,
`viewer/src/styles.css`, `viewer/index.html`, `viewer/src/env.d.ts`: the
panel group and its states (loading, ready, empty, release not read,
experimental release, no ElementId, error with Try again,
read-when-asked), the page's map of answers, focus and a live region,
the status row text, and the no-request mechanics below. The "Not
recovered" note for an element with no IFC property set now says "IFC
property sets".
- `viewer/tests/parameters-row.spec.ts`,
`viewer/tests/no-network.spec.ts`,
`viewer/tests/worker-failures.spec.ts` (now patches the inline worker's
blob where it routed a worker URL), `viewer/tests/folded-pieces.spec.ts`
(prints what a read does and what the page keeps on the BIM4LCA office,
and fails if the read errors).
- `.github/workflows/viewer-test.yml`,
`.github/workflows/deploy-viewer.yml`: after #1458, `--bin rvt-elements`
is built beside `gen-fixture` in the `build` job, copied into the
artifact and checked to run in each leg; Deploy viewer builds and
uploads its own artifact for `tests` and `measure`, so it carries the
binary the same way. A local `pnpm test:browser` needs `rvt-elements` on
PATH (`viewer/README.md`); the `parameters-row` specs skip without it
locally and fail in CI.
- Docs: `docs/viewer-api.md`, `docs/viewer-privacy-posture.md` (the CSP
change, below), `README.md` (13 bindings), `docs/status.md`,
`docs/support-matrix.json` (it also drops the "wall's or floor's type
parameters are not joined" caveat RE-256 made stale),
`docs/evidence.md`, `docs/export-diagnostics.md`, `docs/user-guide.md`,
`docs/viewer-build-pipeline.md`, `docs/maintaining.md`,
`viewer/README.md`, and
`changelog.d/added/35-viewer-saved-parameters.md`.

## Design

**A worker of its own, nothing resident.** `extract` is a pass over the
file, so the read is lazy, per selected element. The open's worker keeps
no `RevitFile` and no bytes: a held handle would keep the file's bytes
and every partition it inflates for the session, and its reads would
hold up the panel (Core Interior's take seconds). Instead the page opens
a worker for one element, which reads the `File` the page already holds,
calls the binding, answers and is terminated, or is terminated at once
when another element, a storey or a scaffold panel replaces the group.
wasm linear memory only grows, so ending the worker gives a read's
memory back. A worker the browser ends with no word (no event) is found
by a Web Lock it holds, so "Reading" cannot show for ever.

**No request once the file is open; the CSP change.** The page's
`worker-src` was `'self'`; it is now `'self' blob:`, and nothing else in
the policy moves (`docs/viewer-privacy-posture.md` says so and why).
Both workers (the open's and the reader) are bundled into the page
(`?worker&inline`) and start from blob URLs; the decoder's glue is a
static import (the main thread's exports used to `import()` it, and
fetch the wasm, at the first export click). The first open's worker
fetches the wasm once, compiles it and hands the module to the page,
which keeps it: the next open (another phase, the saved-mesh toggle, the
large-model retry), the readers (`initSync({ module })`) and the main
thread's exports (`default({ module_or_path })`; the main thread does
not allow `initSync` of a large module) start from it. The lazy loads in
`viewer/src` that could run after the open were:
`import('../pkg/rvt.js')` (static now), `new Worker(new
URL('./worker.ts', ...))` (inline now), the worker's `fetch(new
URL('../pkg/rvt_bg.wasm', ...))` (the page resolves the URL once, and
fetches only at the first open). Opening a gallery demo still fetches
the demo, which is an open.

**First page load.** The page's one script is 999.56 kB (271.47 kB
gzipped) against 959.29 kB (262.82 kB) in the build of `d1de8adf`: 40.27
kB, 8.65 kB gzipped, more, mostly the glue and the two workers it used
to fetch later; the built site holds one script, one stylesheet and the
wasm.

**When a selection is read on its own.** A read has taken 0.74 to 1.04
times the open's wasm memory, and the ratio rises with the file
(Einhoven 23 MiB, Core Interior 326, the office 910). Nothing above the
office has been measured, so a selection is read on its own only while
the wasm memory the page holds (the open's, plus the main thread's
instance if an export made one) is at most 1 GiB (a quarter of
`?memoryCeilingBytes=` where that lowers the 4 GiB ceiling), and above
that the panel asks first with a button whose copy says clicking may
close the tab: a renderer out of memory takes the tab and the model with
it, with no error. After a read that ran out of memory, or a worker that
went without a word, that file is read only when asked. This replaces
the rule that two instances stay inside the ceiling, which extrapolated
past what is measured.

**What the page keeps.** Each element's answer, in a map on the page: at
most 64 (`?parametersRemembered=` lowers it for the test), the least
recently selected going first, emptied when a file is opened. Selecting
an element again starts no worker. On the office after the test's
selections it held 2 answers, 4,654 characters of JSON (the entries are
small; the answers there have 8 entries).

## Testing

Unit tests are banned in this repository: none added. Measured in
**Viewer tests run 42125048710**, dispatched on head
`3146f14e6fcf221adc4f632ac1a5cfa31a3b885d` (the merge of main with
#1457's changes included), `release_wasm=false`, on a CI runner: success
in all three legs, `check-wasm-in-site.sh` finding the one wasm sha256
in the site in each. **Deploy viewer run 42125109395**, dispatched on
the same head, on the release (LTO) wasm: success. Its `tests` job
passed all 61 tests of the suite (the whole of it, on the wasm the site
publishes), its `measure` job 6, and `check-wasm-in-site.sh` found the
artifact's one sha256 (`d2b60a7e…`) in the built site in each of the
three jobs that build it; the page's one script is the same size as in
the viewer tests' build (999.56 kB, 271.47 kB gzipped). On the office
with that wasm a read took 3.3 s in 942 MiB beside the open's 910 MiB,
on selection, and the page kept 3 answers, 4,929 characters; the real
capped read ran out of memory as in the other run. (`deploy` is skipped
on a branch, by design.) This PR's head is `3146f14e` plus documentation
(the figures, in the changelog, `docs/status.md` and
`docs/viewer-api.md`) plus a merge of main as it stood at #1470, whose
export changes (#1456, #1470, `src/ifc`) were not part of either run;
the full CI of the ready PR runs the viewer tests on this head. Earlier
runs on earlier code are not counted; Deploy viewer 42122627698 and
viewer tests 42122623374, on `7663a4f3`, each failed once, in the test
of a worker ended with no word, which ended a worker that had already
answered (a read of Einhoven takes a fraction of a second); the test now
holds the file back first.

`viewer/tests/parameters-row.spec.ts`, in the viewer's leg 1/3 (no new
spec file). The oracle is the command line: the test runs `rvt-elements`
on the same file.

| | Einhoven (2023) | Core Interior (2024) | BIM4LCA office as built |
|---|---|---|---|
| Compared with `rvt-elements`, whole entries | 37 of 37 tree elements:
28 with parameters (369 entries: 332 instance, 37 type, 8 named) equal,
7 with none show the empty state, 2 have no ElementId in the export
(shown as such) | 4 elements, IFCSLAB 22756 (4 entries), IFCWALL 22771
(11), IFCCOLUMN 22798 (17), IFCDOOR 80750 (21), equal | **not compared**
|
| A read, time (a CI runner's) | median 153 ms, most 210 ms | 1.5 to 1.9
s | 3.9 s (8 entries, IFCCOVERING 2097832) |
| That read's wasm memory | 17 MiB | 275 MiB | 943 MiB |
| The open's worker | 23 MiB, 0.7 s in the open call | 326 MiB, 17.3 s |
910 MiB, 66.6 s |
| Read over open (memory) | 0.74 | 0.84 | 1.04 |
| How it was read | on selection | on selection | on selection (no
button) |
| Kept by the page | | | 2 answers, 4,654 characters of JSON |

Also in the spec (each passed in 42125048710):
- **A real out-of-memory read.** A Chromium whose V8 caps wasm memory at
927 MiB (`--wasm-max-mem-pages`, the pattern of
`memory-ceiling-capped.spec.ts`) opens the office (910 MiB) and the read
(943 MiB) really runs out: the page says "The tab ran out of memory
reading the file a second time (unreachable)... read only when asked
from now on", and the next element asks. A read of Einhoven cannot fail
after its open succeeds (17 MiB against 23), so the office is the only
file in CI where a cap separates the two.
- **No request, offline.** After the load the page is taken offline and
every request is recorded (workers included): three elements are read
and equal `rvt-elements`', an IFC, a plan and a glTF export are made,
the file is opened again (the saved-mesh toggle), an element is read
again, and no http(s) request was made. `no-network.spec.ts` runs the
same exports and re-open, and a selection, in phases that allow nothing,
and fails if the sample has no element to select, if the wasm is fetched
to boot the page or more than once.
- The gate at its edge (a limit 8 MiB over and 8 MiB under Einhoven's
measured open memory: read on selection, then asked); the
bare-`unreachable` branch and its copy, and the file read only when
asked afterwards; a worker ended with no word, with the file held back
four seconds so it is still reading; a read for an element no longer
shown ended (another element, a storey), and the shown element's read
not started over by selecting it again; an element selected again
starting no worker; a copy of the file opened under another name
emptying the map; the bound; a read that fails with a panic, with Try
again, and focus on the result; the empty state; the Parameters row
text; Revit 2013 (the worker's answer replaced) and Revit 2019
experimental (replaced).

Not verified:

- **The release-not-read and experimental-release states.** No file of a
release outside Revit 2015 to 2027, or of 2015 to 2022, is in the
viewer's job, so those two tests replace the worker's answer to the page
with the binding's shape for one (`release_read` false;
`release_experimental` true). They test the page's rendering only. The
Rust branches (`NATIVE_RELEASES.contains`, the measured range) are not
exercised by any file.
- `tools/check-local.sh`, clippy and `tools/ci/check-workflows.py` (no
local compute; PyYAML is not installed here); CI's fast jobs on this PR
are the check. The wasm network-import audit passed in the viewer legs.
- An ElementId above `u32::MAX`: the binding reads it, the command line
lists such elements as `id: null`, so nothing compares them.
- The office is not compared with `rvt-elements`; only that its read
does not error. The gate is held at its edge on Einhoven's open memory;
no file between 910 MiB and the 4 GiB ceiling is in the viewer's job,
which is why the limit is the measured 1 GiB.
- The CDP session of `no-network.spec.ts` may not see worker requests;
the offline test, which records every request and fails any, is what
covers them.
- Screen-reader announcements were not heard: the live region's text and
the focus move are asserted, not a screen reader's output.

## Breaking changes

None. A binding is added (`tools/ci/wasm-api.py compat` has nothing to
flag); no existing binding or output changes. The `worker-src` of the
page's Content-Security-Policy gains `blob:`.

## Related issues

Refs #35 (#255 and the family built-in slots stay open).
DrunkOnJava added a commit that referenced this pull request Nov 9, 2026
…read by VWallDriver.m_pCrv, so 14 doors of rac_advanced 2027 take the axes rule (#1475) (RE-360) (#1500)

## Summary

Closes #1475.

On Revit 2027's save of `rac_advanced`, 18 of 180 `SWall` records hold a
second `GLine` besides the location curve, owned by
`WallRunTimeData.m_prevLocLine`. `native_walls` left out any wall with a
second curve, so the 8 host walls of 14 doors returned no native line
and the doors kept the default axes (RE-360). A record of exactly two
curves is now read where one is the level `GLine` `VWallDriver.m_pCrv`
names and the other is a `GLine` that only `m_prevLocLine` names. A
record with the one `GLine` reads as before, and any other set of curves
stays unread (a `CurveLoop.m_curves` profile wall, an arc, a null or
ambiguous `m_pCrv`).

## Motivation

#1456's second read found 14 doors of `rac_advanced`'s 2027 save left on
the default axes. #1454's check compares each cut opening with the 2025
save, so the 14 differ on axes alone. Both done-when items of #1475 are
met: the missing row is explained from the bytes (RE-360 section 1), and
the 14 doors are placed by the rule on 2027. The 15th door of the 2024
save's 8 hosts is hosted by another wall on 2027: #1454's cause, not
this one.

## Changes

- `src/research/native_walls.rs`: `record_line`, `location_curve_index`,
`is_previous_location_line`; `location_curve` (RE-348) now shares the
pointer read.
- `tools/re/bodies_across_saves.py`: the 2027 floor of `rac_advanced`
doors 47 to 61 and the ceiling of doors left on the default axes 42 to
28, as RE-347 requires of a count that moves. Whichever of this and
#1454 lands second sets 2027's numbers from a samples run on the merged
head and takes neither side's: #1454's branch holds 68, 24 and 15 for
the same counts, and this change's 61, 18 and 28 would loosen them.
- `probes/examples/probe_re360_wall_location_curve.rs`,
`tools/ci/scrub-holdout-results.sh` (keeps the probe's counts-only
`previous lines:` line for a model without a licence),
`reports/element-framing/RE-360-wall-previous-location-line.md`,
`changelog.d/fixed/1475-wall-previous-location-line.md`,
`docs/maintaining.md`, RE-347's section 7 (figures it no longer holds).

## Testing

Unit tests are banned in this repository: none added. Measured on
Autodesk's sample projects of 2024 to 2027 (25 files, no Revit export of
any):

- Measure
[42129732742](https://github.com/DrunkOnJava/rvt-rs/actions/runs/42129732742),
head `d741927`: the probe, the cause.
- Measure
[42134051521](https://github.com/DrunkOnJava/rvt-rs/actions/runs/42134051521),
head `0a0ba7ce` against base `ce3a3c47` (the same code without the
rule), default scorers, every job green. The figures below are from it.
It was dispatched from `main`, so it took `main`'s gate.
- Measure
[42137808608](https://github.com/DrunkOnJava/rvt-rs/actions/runs/42137808608)
on head `b470a9ab`: the `same-project gates` check passes on 9 samples,
but reads "Scored by workflow commit `c5bae9ed`", `main`'s gate, whose
2027 ceiling is 42. **It did not exercise this PR's edit of
`bodies_across_saves.py`**, so 61, 18 and 28 are not yet scored by
anything.
- Measure
[42141380072](https://github.com/DrunkOnJava/rvt-rs/actions/runs/42141380072),
the unfiltered run on head `5754c7f3` against `main` at `0dd3ad93`,
dispatched from this branch (`-f base=main -f samples=true -f
nordic=true -f r2025=true -f holdout=true -f keep_ifc=true`, the probe
on every model), every default scorer, no filter, every job green. Its
`same-project gates` check reads "pass: 9 samples held to their earlier
saves, and the Areas on 4 saves and on the 2021 save", "Scored by
workflow commit `5754c7f3`": this branch's gate, with its 61, 18 and 28.
The same gate on the base fails `rac_advanced` 2027 on both numbers (47
doors below 61, 42 left out above 28), so the floor and ceiling bind.
The figures under "Every model" are from it.

- Head `a0c90b97` holds #1477 and #1483 (main moved after the run)
through a clean merge; #1483's projected wall read is the 2015 to 2023
`WallReads::read`, not this read. Their effect on the figures was not
measured.

- [x] Verified end to end on real Revit files: the command, the files
and the measured result are in the report, with the probe that
reproduces it
- [x] Touches the IFC exporter only through what the wall read feeds: of
111 models and samples six exports change and 105 are byte for byte
main's (list below)
- [x] Not a performance change

## Every model (run 42141380072, repeated on the landing head)

The landing run is
[42530216655](https://github.com/DrunkOnJava/rvt-rs/actions/runs/42530216655),
head `aa3324e8` against `main` at `1e2d3de4`, which includes #1517: that
change makes `native_walls` reach Revit 2015 to 2023, so this rule does
too. 112 of 118 exports are `main`'s, the same 6 move, none of them 2015
to 2023, and `same-project gates` passes. Before it, run
[42518227323](https://github.com/DrunkOnJava/rvt-rs/actions/runs/42518227323),
head 431c2f2d against `main` at ab5f8e1, 118 models and samples:
`ifc.sha256` moves on the same 6 as below, the office's door axes
(placed by the rule 193 to 194, differing from Revit 0) and
`Qto_WallBaseQuantities.Length` (missing 54 to 52, different 0) move as
below, nothing else does, and the same-project gates pass with
`rac_advanced` 2027 going from fail on the base to pass on the head.


- **`ifc.sha256`, base against head:** equal on 105 of 111, moved on 6:
`rac_basic` 2024 to 2027, `rac_advanced` 2027 (above) and the BIM4LCA
office as built. Held-out and spent models: equal on all 19, kept counts
unchanged but for the added `previous lines:` line.
- **Walls read through the rule** (records, with a previous line
(offset), read through the rule): Core Interior 1,209, 281 (0), 281,
export byte for byte main's, so it exercised 281 walls and none reaches
an output (no `REPLAY_DRIFT` is possible: its export and witness
observations are the same); the office at permit 1,137, 76 (24), 76,
byte for byte; `rac_basic` 2023 5, byte for byte (the consumers do not
run there); Snowdon Architectural 2, byte for byte. Every other model
reads none through the rule and exercises nothing.
- **The office as built** (Revit's export exists; 1,082, 52 (23), 51):
the export differs in one door and its opening of 13,688 products: door
2597741, set in the newly read wall 2599599, gains `PlacementAxesSource`
and the rule's axes; no body, class, other property or quantity moves.
`door_axes_vs_ifc`: placed by the rule 193 to 194, differing from
Revit's 0, same 211 to 212. `qtos_vs_ifc`: equal 29,760, different 1 (as
on main), rvt-rs quantities Revit does not write 0, unchanged;
`Qto_WallBaseQuantities.Length` equal 92, different 0, missing 54 to 52,
the 2 walls leaving it being the 2 newly read plain walls, whose Length
Revit's export gives as rvt-rs's curve's or its Axis's (neither stays
0). `psets_vs_ifc`, `wall_bodies_vs_ifc`, `wall_ends_cv_vs_ifc`,
`class_sets_vs_ifc` and `door_bodies_vs_ifc` are identical files.
`wall_length_vs_ends` is not a Measure scorer. The diagnostics gain
exactly the 2 walls; the semantic diff finds 0 elements changed. Nothing
moved away from Revit's.
- **Held-out:** 11 of the 18 hold native wall records (145 in all) and
none holds a previous location line; the other 7 (2018 to 2022) hold
none to read. So no held-out model has an offset previous line. The
offices do (23 of 52, 24 of 76); the walls and the door of the office as
built that reach its export agree with Revit's, but which of the 23
those are was not read.

## Measured result (run 42134051521, samples only)

- **What each save reads** (base, head): `rac_advanced` 2027 162, 180
(2024 to 2026 180, 180); `rac_basic` 47, 52 on 2024 to 2026 and 46, 52
on 2027; `rme_advanced`, `rme_basic`, `rst_basic` unchanged; Snowdon
Architectural 1,202, 1,204. On the head `rac_basic` reads the same 52
walls and `rac_advanced` the same 180 on all four saves, by id. No wall
the old rule read is un-read. 26 walls are newly read over every `SWall`
record of the 25 files (the probe's count), of which 20 can reach an
export: the 18 of `rac_advanced` 2027 and `rac_basic`'s 709245 and
234869, none on Snowdon.
- **What settles which line is the location curve** (RE-360 section 1):
the previous line has the location curve's direction and length, so
length cannot say. On the 4 walls where it is offset it is offset across
the wall by exactly half the type thickness (0.4970 of 0.9941 ft, 0.2272
of 0.4544 ft); `m_pCrv`'s line equals the partition axis (RE-53) to
0.0000 ft on all 13 dumped walls that have one, and
`attach_wall_lengths` gives `m_wall_curve_length` only within 1e-4 ft of
that axis, which all 17 newly read plain walls got. A record whose
`m_pCrv` names the stale line could not be told apart by naming; none
exists in the 25 files. Curtain walls have no axis and no guard, so only
the rule protects them; both here have a coincident previous line.
- **What moves in the IFC:** `rac_basic` 2024 to 2027 and `rac_advanced`
2027 only. `rac_basic`: curtain wall 709245 gains
`Qto_CurtainWallQuantities.Length` 3.01 m, nothing else. `rac_advanced`
2027: curtain wall 149877 gains `Length` 25.6109 m (its 2024 to 2026
value); 14 doors gain `PlacementAxesSource`; 13 doors and their 13
openings change placement. No body volume or world box moves, no product
added or removed. No other wall, neighbour reach, shell or length
changes on any save. **No check holds the two curtain `Length` values**:
no Revit export of these files exists, no gate compares a curtain wall's
`Length`, 709245 gains it on all four saves at once, and only its box
width of 9.8753 ft corroborates it.
- **Pinned walls (`lane/1454-gates`):** one overlap, 234869 on
`rac_basic` 2027; its body, volume, box and properties are unchanged, so
its pin holds. Nothing re-pinned.
- **Snowdon Architectural:** byte for byte the base's; the 2 newly read
walls are not products of rvt-rs's export nor of Revit's IFC4 (counts
only), so nothing is scored and no wall moves from Revit's.
- **The 14 doors:** equal to the 2025 save's (and the 2024 save's) in
axes, origin, body vertices and volume, 14 of 14 (base: 1 of 14), placed
by the RE-347 axes rule. The same-project gate of that run, main's:
`rac_advanced` 2027 compares 79 (61 doors, 18 windows) and leaves 28
out, where the base compared 65 and left 42 out.
- **The 14 cut openings:** placement now equal to the 2025 save's; their
volume and vertices still differ on all 14 (0.3526 ft at the farthest)
before and after, because the cut loop of a door's symbol is read on
2024 and 2025 only. #1454 widens that list; not measured together.
- **Not measured:** any Revit export of the sample files; the newly read
sample walls' lengths and directions against Revit's; whether the 2
walls and the door of the office as built that reach its export are
among its 23 offset previous lines (the probe prints a count, not the
wall).

## Audit-honesty checklist

- [x] README and docs reflect the state: no capability claim changes
beyond the two values above
- [x] Changelog fragment under `changelog.d/fixed/`
- [x] A limitation remains and is stated: the 14 openings' size on 2027
(above)
- [x] Commit messages describe what changed
- [x] No emojis; no private paths or personal addresses in committed
files
- [x] Reverse-engineering finding: a reproducible probe under
`probes/examples/` and the report RE-360

## Legal and contribution hygiene

- [x] I agree this work is licensable under Apache-2.0
- [x] No Autodesk proprietary source, decompiled internals or NDA'd SDK
content: member names and bytes of Autodesk's public sample files
- [x] No fixtures

## Breaking changes

None.
DrunkOnJava added a commit that referenced this pull request Nov 9, 2026
… the 2025 properties are read as on 2025 (#1190) (RE-346) (#1454)

## Summary

Revit 2026 and 2027 projects now draw pipes as their cylinders, place
family instances' ports, cut walls to their doors' and windows'
outlines, and write `IsExternal`, railing heights and lengths, stair
names, rooms' height and net volume and the pipe and duct quantities, as
2025 projects do. Ten readers' release lists gain 2026 and 2027; one
value of them is left out where Revit's own 2026 and 2027 exports
disagree, and one more (a stair part's `ObjectType`) is left out for the
same reason (below). It's a second slice of #1190, on top of #1426
(RE-341), measured against the same Autodesk samples saved by Revit
2025.

## Motivation

#1190 asks for each capability 2024 and 2025 have on every release from
2015 to 2027. After #1426, ten more readers were limited to 2024 or 2025
(room height to 2024 to 2026), so on 2026 and 2027 a pipe was not drawn
from its axis, no port was placed, a wall wasn't cut by its doors' and
windows' outlines, and the properties below weren't written. On
`rme_basic` 2026, 493 of its 6,650 bodies differed from its 2025 save,
and none of its 7,046 ports was placed.

## Changes

Release lists, each gaining 2026 and 2027 (puzzbobb's change):

- `src/ifc/mod.rs`: `PORT_PLACEMENT_REVIT_VERSIONS` (#869).
- `src/research/partition_pipe_axes.rs`:
`PIPE_AXIS_SUPPORTED_REVIT_VERSIONS` (RE-131).
- `src/research/partition_curve_fields.rs`:
`CURVE_FIELDS_SUPPORTED_REVIT_VERSIONS`.
- `src/research/partition_schema_mvp/fields.rs`:
`CUT_LOOP_REVIT_VERSIONS` (RE-215),
`IS_EXTERNAL_LAST_STEP_REVIT_VERSIONS` (RE-193),
`ROOM_PRISM_REVIT_VERSIONS` (RE-296), and `ROOM_HEIGHT_REVIT_VERSIONS`
(RE-255) gaining 2027.
- `src/research/native_stairs.rs`: `RAILING_HEIGHT_REVIT_VERSIONS`
(RE-231), `RAILING_LENGTH_REVIT_VERSIONS` (RE-254),
`NATIVE_STAIR_NAME_REVIT_VERSIONS` (#323).

Three more lists were tried by the contributor and left alone: a wall
type's face angles, sketch splines and connector pairs change no 2026
export they held.

Maintainer's changes on top, from what the held-out Revit 2026 and 2027
exports showed (Measure run 42062972018, head 3149973, counts only):

- A door's or window's `Area` is not written on 2027
(`DOOR_WINDOW_AREA_REVIT_VERSIONS`, 2024 to 2026): on hemanth1986's 2027
house and office every one differed from Revit's (rvt-rs over Revit
0.2558 on the windows), while Width and Height were equal and the 2026
Areas were equal.
- A stair's, flight's and stringers' `ObjectType` is not written from
2026 (`STAIR_OBJECT_TYPE_LEFT_OUT_FROM`, #1472 for the same on every
other class): writing it turned ObjectType from equal to different on
the 2026 and 2027 houses. Their type and family are read on 2025 to 2027
as the contributor wrote, which gives them their names (equal) and their
type objects and type-derived property sets; each of those is kept only
where it measures equal on the held-out pairs (the `holdout=true` run
decides). An earlier head of this PR read the type and family on 2025
only, which Measure run 42107917715 showed cost two monolithic flights
of `rac_basic` their Names; that is reverted.
- The same-project gate now holds the MEP samples and what this PR adds
(`tools/re/bodies_across_saves.py`, new
`tools/re/readers_across_saves.py`,
`tools/ci/measure-reference-models.sh`,
`tools/ci/check-bodies-across-saves.sh`,
`tools/ci/same_project_verdict.py`): pipes, each door and window cut in
its host (the opening, its quantities and the volume it takes out of the
host), each port, the properties and quantities, each door's and
window's size and type, and a census of every body, all to the 2025
save, with the number each compared printed and a least number that
fails. The contributed change passed the old gate without being seen by
it. Products that share a Tag are paired by storey, volume and centre,
and the two saves must share exactly one GlobalId under such a Tag, on
the two products paired, so an identity swapped between two pieces fails
(the MEP samples' floors).
- **The gate changed how it measures pipes** (Griffin, 2026-11-05,
"Compare the cylinder itself"). A pipe that is a circular extrusion in
both saves is held to its cylinder, the two ends of its axis in either
order, its radius and its length, each to 0.001 ft, and no longer to the
vertices of the polygon its circle meshes to. Why: Measure run
42107917715 failed 15 of `rme_basic`'s 2027 pipes by 0.0038 to 0.0063 ft
in the vertex check, and in 115 of the 491 `IfcPipeSegment` extrusions
the 2027 save writes the frame from the other end (110) or with the
profile turned about its axis (5): the same cylinder, a different
polygon. All pipes are held the same way, a pipe that really moved still
fails, no list was added, and the 15 stay drawn; a pipe that is not a
circular extrusion in both saves keeps the vertex check. Each run prints
how many were compared as cylinders (454 and 457, all of them) and by
vertices (0).
- The census admits only 16 `rac_basic` walls (`PINNED_WALLS`, Griffin
2026-11-05: each pinned per release to its source pair, volumes and
world boxes, so one whose source, volume or box moves, or that heals,
fails; the list can only shrink, #1471 fixes them) and counts the roofs
left as record boxes exactly (`rac_advanced`'s 201262 and `rac_basic`'s
243274, one each on 2026 and 2027, none elsewhere). The 2027 pins equal
the 2026 pins wall for wall, measured on run 42107917715's files.
`tools/ci/check_same_project_projects.py` (a CI step) fails when the
files that name the gate's samples and years disagree, when a release
pins more than 16 walls and when a pin is added to the 16 first pinned.
- #1456's doors and windows group (RE-347) is merged in: this change
widens the cut pass that reads a door's flips and rebinds its host to
2026 and 2027, so the left-out ceilings #1456 set at 28 and 42 on
`rac_advanced` become 0 and 14 (the 14 are #1475), the floors rise to
the 2025 save's, and `rme_advanced` and `rme_basic` join the group with
107 doors per year and a ceiling of 0. These are set from #1456's
diagnosis, and the Measure run of this head prints what each really is.
- Two doors of `rac_basic`'s 2027 save (431064 and 485679) write no
`Qto_DoorBaseQuantities` Width and Height where 2025 and 2026 write 0.8
and 2.1: not explained from the bytes, #1489 (it may be the kind of gap
#1475 is). The gate holds `rac_basic`'s properties per release (418 on
2026, 414 on 2027).
- `CUT_LOOP_REVIT_VERSIONS` widening makes the cut pass give the doors'
and windows' flips on 2026 and 2027, which a pass of their own
(`attach_opening_flips`) did: that pass is dropped.
- `tools/re/save_pair_ports.py` no longer drops the ports of a key that
has more on one side.

Also:

- `tools/re/save_pair_props.py` (new): every property and quantity of
two exports of the same project, element for element (rooms by
GlobalId).
- `tools/re/save_pair_ports.py` (new): every `IfcDistributionPort`, by
its host's `Tag`, `Name` and `FlowDirection`, origin to 3 mm and axis to
1e-3.
-
`reports/element-framing/RE-346-2026-2027-pipes-ports-cuts-properties.md`,
an addendum to `docs/format-reconnaissance.md`, `docs/status.md`,
`docs/evidence.md`, `docs/supported-profile.md`, `docs/maintaining.md`,
`changelog.d/added/1190-2026-2027-pipes-ports-cuts-properties.md`.

## Testing

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

- [ ] `tools/check-local.sh` passes (fmt, clippy, rustdoc, build,
real-file / CLI / contract checks)
- Not run by the maintainer's lane (no local compute); CI is the build.
- [ ] Verified end to end on real Revit files: the command, the files
(and their licence), and the measured result against Revit's own export
are in the PR body, with the script or probe that reproduces it
- **Not against Revit's own export of an Autodesk sample:** no Revit
2026 or 2027 export of them is available. Measured instead against the
same Autodesk samples saved by Revit 2025, whose exports are measured
against Revit's. It can't catch an error the 2025 save shares, nor a
value Revit's exporter writes differently on 2026 or 2027, which is what
the held-out pairs showed for the Area. The files are the pinned samples
in `research/autodesk-sample-projects.tsv` (fetched, never stored).
- **The final run**, Measure
[42545885153](https://github.com/DrunkOnJava/rvt-rs/actions/runs/42545885153):
this change at `ea21dfc6` (the code of the head that lands) against
`main` at `1c088750`, unfiltered with the held-out models, racadv,
BIMcollab and every sample, scorers from the PR's own gates. 103 of 118
exports are byte for byte `main`'s, and the 15 that move are all Revit
2026 or 2027: the ten 2026 and 2027 Autodesk samples and the five
held-out 2026 and 2027 projects. No 2015 to 2025 export moves, nor Core
Interior, RE1, R2025, the office, racadv or BIMcollab. `same-project
gates` passes on 15 samples and the Areas.
- On the 2026 and 2027 saves of `rme_advanced` and `rme_basic`, every
body is the 2025 save's: 6,605 and 6,650. On `main`, 36 walls on each
are not cut by their doors and windows. Every pipe (488 and 491) is the
2025 save's cylinder, as it already was on `main` since RE-370. The
placed ports are the 2025 save's, 6,967 and 7,054 against 1,944 and
1,956 on `main`. `rac_advanced`'s 2027 save compares its 83 doors and 24
windows and leaves none out (the gate now holds that, ceiling 0).
- Held-out 2026 and 2027 pairs, counts only: every value this adds is
equal (`IsExternal`, railing Height, the stairs' values, door and window
Width and Height, opening Depth, room NetVolume and Height), "different"
is unchanged and the values Revit does not write stay 0. No door or
window Area is written on 2027. Equal rises, for example on the flowbim
house from 378 to 396 property values and from 135 to 200 quantities.
- The 2025 save still writes values these saves do not, counted and not
failures: `IsExternal` on walls, plates, members and curtain walls,
2027's Areas, and the two `rac_basic` 2027 doors of #1489.
- The gate's floors and ceilings for `rac_advanced` 2027 moved to what
that run counts. Measure run 42550512790 (`scorers=bodies_across_saves`,
every 2025 to 2027 sample) is the gate on the head that lands.
- [ ] If this touches the IFC exporter: the witness verdicts replay (see
CONTRIBUTING.md) or the changed observations are refreshed in this PR
- Core Interior (2024) exports byte for byte as before (run
42545885153), so its observations are unchanged.
- [ ] If this is a performance change: reran `tools/bench.sh` and
attached the before / after
  - N/A.

## Audit-honesty checklist

- [x] README / docs reflect the current state after this PR — no claims
of features that are not actually shipped in this PR
- [x] A user-visible change has its entry as a fragment under
`changelog.d/<section>/` (see `changelog.d/README.md`), not in
`CHANGELOG.md`
- [x] If a limitation was resolved, the "Known limitations" / "What
works today" section in the relevant docs is updated
- `docs/status.md` (stair names and railing heights and lengths come off
the unread list), `docs/evidence.md` and `docs/supported-profile.md`
(the 2026 rows; 2027 is "as on 2026", without the Area).
- [x] If a new limitation was introduced, it is documented in the PR
body and in-code
- A 2027 door's or window's Area, and a 2026 or 2027 stair's, flight's
and stringer's `ObjectType`, are not written (section 5 of the report);
two doors of `rac_basic` 2027 write no Width and Height (#1489).
`IsExternal` on walls, curtain walls, members and plates is still not
written on 2026 and 2027, as before.
- [x] Commit messages describe WHAT changed and WHY, not "fix things" or
"updates"
- [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: a reproducible probe
under `probes/examples/` and a dated addendum to
`docs/format-reconnaissance.md` are included
- The addendum is included. No new byte layout is decoded (the records
are RE-124's and RE-179's), so there is no probe. The gate and
`tools/re/save_pair_*.py` reproduce the measurement.

## Legal and contribution hygiene

- [x] I agree this work is licensable under Apache-2.0 (see
`CONTRIBUTING.md`)
- [x] This PR contains no Autodesk proprietary source, decompiled
internals, or NDA'd SDK content (see `CLEANROOM.md`)
- [x] Any new test fixtures use synthetic values (`testuser`, `111111`,
`FY-20XX`, etc.) and contain no real-world PII
  - No fixtures.

## Breaking changes

None. Only release lists change; their constants keep their names and
types.

## Screenshots or output samples

`rme_basic` 2026 against its 2025 save, run 42545885153, `main` then
this change:

```
census (bodies, box 3 mm, volume 0.1%)
main:  same 6614, differ 36
this:  same 6650, differ 0

ports
main:  compared 1,956 (5,098 only in the 2025 save)
this:  compared 7,054, differ 0
```

## Related issues

Refs #1190, #1426, #421

## Notes

The contributor's change, rebased onto `main` as one commit with
puzzbobb as its author; the history before the rebase is kept at
`refs/archive/2026-11-08/pr1454-pre-rebuild-66a9cd9c`.

---------

Co-authored-by: Griffin Long <[email protected]>
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