Repository navigation
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
Conversation
…e wall-top roof fix # Conflicts: # docs/format-reconnaissance.md
…axes, its X the stored one reversed where the flips differ (#1447) (RE-347) (#1456) ## 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](https://github.com/DrunkOnJava/rvt-rs/actions/runs/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](https://github.com/DrunkOnJava/rvt-rs/actions/runs/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](https://github.com/DrunkOnJava/rvt-rs/actions/runs/42092391898)) and as record boxes (`--no-saved-meshes`, Measure [42106731054](https://github.com/DrunkOnJava/rvt-rs/actions/runs/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](https://github.com/DrunkOnJava/rvt-rs/actions/runs/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 #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. - [x] 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
|
@DrunkOnJava, my merge of What went wrong
The fix I'd suggest: one docs-only commit on the current head that
I can push that if you'd like, or leave it to you since you own the branch now. I won't push without hearing from you. Also, is there anything you're waiting on before taking this out of draft? The issues opened from it (#1471, #1472, #1475, #1489, #1493, #1500) read as follow-ups, and #1476 is stacked on it. |
|
@puzzbobb thanks for catching this, and for the exact diagnosis. All three items are right. I'll push that docs commit to this branch, so there's nothing for you to do. On the draft: nothing is wrong with the change. It still needs its final unfiltered Measure and a second review on the head that lands, and work on it stopped before those happened. The follow-ups you list don't block it. Once the docs commit is on the branch I'll run that Measure, review it, mark it ready and land it, and #1476 gets rebased after that. It's last in the order on #1190, because the 2015 to 2023 slices ahead of it are smaller and already green. |
66a9cd9 to
9705f3f
Compare
|
@puzzbobb I've rebased this onto One change to your text, because #1523 landed first: RE-370 and the comment on The final unfiltered Measure is running (run 42544306837). Nothing is needed from you. |
…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.
2d7346a to
ea21dfc
Compare
… the 2025 properties are read as on 2025 (DrunkOnJava#1190) (RE-346) Co-authored-by: Griffin Long <[email protected]>
2c42436 to
f2990ac
Compare
…tor entries, as RE-370 already draws them
|
@puzzbobb this has landed (thank you): Revit 2026 and 2027 pipes and ports, door and window cuts, and the 2025 properties, read as on 2025. The final unfiltered Measure (run 42551669812) moves only the 15 Revit 2026 and 2027 exports. Every value this adds to the held-out 2026 and 2027 pairs is equal to Revit's own export, with "different" and the values Revit does not write unchanged, and the same-project gates pass on 15 samples. It ships in the next release. |
…ne (#1190) (RE-362) (#1509) ## Summary Revit 2015 to 2023 projects now draw beams along their location lines and write their `Span`, `Slope`, `Roll` and `Length`, as 2024 projects do. It's a third slice of #1190, measured against the same Autodesk samples saved by a later release, not against a Revit export. ## Motivation #1190 asks for each capability 2024 and 2025 have on every release from 2015 to 2027. Revit 2015 to 2023 take a branch of `recover_partition_schema_mvp` that ends before the beam readers, so a beam there was its record box, although walls on those releases read the same line record (RE-114, RE-180, RE-181). `exported.body_sources` on `main`: | body source | `rac_advanced` 2023 / 2024 | `rst_basic` 2023 / 2024 | |---|---|---| | `partition_beam_axis` | 0 / 29 | 0 / 345 | | `partition_beam_box_along_axis` | 0 / 8 | 0 / 9 | ## Changes - `src/research/partition_schema_mvp.rs`: the 2015 to 2023 branch calls `attach_beam_rotations` and `attach_beam_axes`. - `src/research/partition_schema_mvp/framing.rs`: the rotation's native read names `NATIVE_RELEASES` (its default stops at 2023; RE-280 measured the framing on 2015 to 2022), and the line is read through `scan_first_bounded_lines` behind the new gate. Both readers skip a beam a column cuts (RE-122): its record box fields are the cut box's, so `attach_beam_axes` would test a line against them and attach it where they coincide (5 of `rst_basic`'s 31 cut beams on each of 2016 to 2023 in the first head); skipping restores `main`'s bytes on those beams and cuts `rst_advanced`'s rotation decode from 397 beams to 64. - `src/research/partition_beam_axes.rs`: `BEAM_AXIS_2015_TO_2023_REVIT_VERSIONS` (2015 to 2023, renamed from `BEAM_AXIS_32BIT_REVIT_VERSIONS`: it is not the 32-bit set, 2008 to 2023) and `beam_axis_read_on`. `BEAM_AXIS_SUPPORTED_REVIT_VERSIONS` is left alone because it also gates `scan_bounded_lines`, which isn't measured on these releases (#1452 has split the sketch curves and shafts off). `line_copies` and `all_line_copies`, which only probes call, gate on `beam_axis_read_on` too. - `probes/examples/probe_re362_beam_lines_pre2023.rs`: `probe_re328_beam_rejections` on 2015 to 2027, counts only, as `native readers:` lines the scrub keeps for an unlicensed model. - `reports/element-framing/RE-362-2015-2023-beam-axes.md`, an addendum to `docs/format-reconnaissance.md`, `README.md`, `docs/status.md`, `docs/evidence.md`, `docs/supported-profile.md`, `docs/support-matrix.json`, `changelog.d/added/1190-2015-2023-beam-axes.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 (fmt, clippy, rustdoc, build, real-file / CLI / contract checks) - `tools/check-local.sh --corpus` passes on d6f69d9 (`integration` 300 of 300, 6 filtered out), and `cargo +1.87 check --profile ci --all-targets` is clean. The commit was then rebased onto 6299876, three CI-only commits that touch none of these files; `cargo fmt --check` and `tools/ci/api-doc-ids.py` were rerun there. - [ ] 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: no Revit export scores any beam this rule draws on 2015 to 2023, among the models Measure fetches without a held-out pair.** Measure run 42134881703 (head 0c39def, base `main`, `-f bimcollab=true -f racadv=true -f samples=true -f sample_years="2015 2024"`, counts only) scored the two sources of such an export. BIMcollab's Revit 2015 example holds 91 beams in Revit's export, and rvt-rs draws all 91 as record boxes, on `main` and on this head: 0 drawn by line, `Span` and `Slope` missing on all 91 as on `main`. The three.js IFC2X3 export of `rac_advanced`, which `racadv-2015` to `racadv-2020` are scored against, holds no `IfcBeam` (3,308 `IfcMember`, 1,349 `IfcPlate`, 176 `IfcColumn`, 75 `IfcBuildingElementProxy`), and none of the 38 beams has an element with its Tag in it under any class. So `Span` and `Slope` are written on 25 `racadv` beams that export does not carry, which is what the rule does there, with nothing to score it. Measured against the same Autodesk samples saved by a later release, which can't catch an error that save shares. The files are the pinned samples in `research/autodesk-sample-projects.tsv` (fetched, never stored). - Beams the change draws, against the later save, to 3 mm on the world box and 0.1% on the volume (`tools/re/save_pair_bodies.py`): - `rac_advanced` 2015 to 2023, against 2024: 33 of 33 on each. - `rst_basic` 2019 to 2023, against 2024: 312 of 323 on each. - `rst_basic` 2017 and 2018, against 2024: 298 of 323. - `rst_basic` 2016, against 2024: 285 of 323. - `rst_advanced` 2015, against 2019: 54 of 54. - `rst_basic` 2015 is another model (RE-181), so it has no later save. Its 29 beams are only checked within the file. - The 11 have the same box and another volume: the 2024 save draws those steel beams as their type's I section (RE-103), not tried on these releases. - The other 14 on 2017 and 2018, and 27 on 2016, already differ in the saves' raw record boxes with no line read (`main`'s exports, against the 2023 save: 3.9 mm, and 4.1 to 24.4 mm). Why Revit's upgrade moved them is not decoded. - Within each of 20 files, every beam's new body is within 3 mm of its own save's record box. The reader requires that, so it places the differences in the saves and doesn't show the box is right. - `Span`, `Slope`, `Roll` and `Length` written here equal the later save's to 1e-3, except `Span` and `Length` on 13 beams of `rst_basic` 2016, the ones whose box differs by about 25 mm. Every beam's storey and GlobalId are as on `main`. - Why BIMcollab's 91 beams read no line (Measure run 42139236978, `probe_re362_beam_lines_pre2023`, counts only): the release gate passes, every beam has a record box and element data in a partition, and none of the 91 has a bounded line record in it (`no_line` 91, nothing refused for its box). The line record this change reads is what Autodesk's 2015 samples hold for 33 of 34 `rac_advanced`, 29 of 39 `rst_basic` and 54 of 64 `rst_advanced` beams that RE-122 does not cut; BIMcollab's structural model, from outside those samples, holds none, so the reach is Autodesk's samples and no model from elsewhere has been read. No fix: the probe shows the line absent from the window, not where it is (RE-362 §5). - **Landing run**, Measure [42548058739](https://github.com/DrunkOnJava/rvt-rs/actions/runs/42548058739): `e853e731`, this change rebuilt on `main` at `1c088750`, against that `main`, unfiltered with held-out models, BIMcollab and `racadv`, 118 models. 91 exports are byte for byte `main`'s. The 27 that move are the 20 sample saves named above, the 6 racadv models and held-out Gdynia 2021. No 2024 to 2027 export moves, BIMcollab's 91 beams stay boxes (#1514), and `same-project gates` passes on `e853e731`. Its figures are those of the earlier run below. - **Earlier run** (Measure [42518199499](https://github.com/DrunkOnJava/rvt-rs/actions/runs/42518199499), head e05db36, unfiltered, with held-out models, BIMcollab and `racadv`). Gdynia (Revit 2021, held out, counts only) is the first Revit export to score a beam this rule draws: `Pset_BeamCommon.Span` and `Slope` 3 equal, none different and 7 missing of 10 each; all values equal 689 to 695, different and values Revit doesn't write unchanged. On `racadv` 2015 to 2020, values Revit doesn't write go 342 to 392 (25 `Span`, 25 `Slope`): that IFC2X3 export holds no `IfcBeam`, so it is counted apart. - Byte identity, by hash in Measure run 42134881703 (Autodesk's samples 2015 to 2024, `racadv`, BIMcollab): 26 exports move and nothing else: 20 sample saves (`rac_advanced` 2015 to 2023, `rst_basic` 2015 to 2023, `rst_advanced` 2015 and 2019) and the 6 `racadv` models. No 2024 export moves, nor `rac_basic`, `rme_advanced`, `rme_basic`, Snowdon or BIMcollab; 2025 to 2027 were not in that run. The local count of 11 of 206 files, "2017 to 2023", did not hold: 2015 and 2016 draw beams too. - [x] 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, so its observations are unchanged. - [ ] If this is a performance change: reran `tools/bench.sh` and attached the before / after - N/A. The beams' native read adds under 0.15 s to a 1.2 s export (`rst_basic` 2023 and 2019, single runs). ``` tools/fetch-autodesk-samples.sh samples 2015 2024 for f in samples/*.rvt; do rvt-ifc "$f" -o "${f%.rvt}.ifc"; done S=partition_beam_axis,partition_beam_box_along_axis python3 tools/re/save_pair_bodies.py samples/2023-rstbasicsampleproject.ifc samples/2024-rstbasicsampleproject.ifc --sources $S python3 tools/re/save_pair_bodies.py samples/2016-rst_basic_sample_project.ifc samples/2024-rstbasicsampleproject.ifc --sources $S ``` ## 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`, `docs/evidence.md`, `docs/supported-profile.md`. The 2008 to 2014 rows now say "as on 2015, without beams along their axes". - [x] If a new limitation was introduced, it is documented in the PR body and in-code - None new. Still not done, RE-362 §5 and §6: on these samples 31 `rst_basic` and 4 `rac_advanced` beams keep RE-122's column cut as on `main`, without `Span`, `Roll` or `Length` (and 333 of `rst_advanced`'s 397, 120 of `rst_basic` 2015's 159); I sections aren't tried; `tools/re/bodies_across_saves.py` and Measure's gate don't hold these saves, and no Revit export checks a beam this rule draws. - [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-49's and RE-276's), so there is no probe; `tools/re/save_pair_bodies.py` reproduces 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. A new public constant and function; existing names and types are unchanged. ## Screenshots or output samples `rst_basic` 2023 against its 2024 save, this branch: ``` tools/re/save_pair_bodies.py --sources partition_beam_axis,partition_beam_box_along_axis same 312, differ 11, not in the reference 0 IfcBeam: same 312, differ 11, not in the reference 0 ``` ## Related issues Refs #1190, #1426, #1452, #1514 (BIMcollab's 91 beams hold no line the reader finds) ## Notes Independent of #1454. #1452 has merged: `beam_axis_read_on` stays as it is, reading the beam list (2024 to 2027 since #1452) and the 2015 to 2023 list beside it. ## Clean-room declaration The changes in this PR are based on public byte observations of Autodesk's sample projects and of BIMcollab's example project (the bounded line record, RE-49 and RE-114; the cross-section rotation, RE-276; the native record framing, RE-280) and on Revit's own IFC exports as counts. No Autodesk SDK source, ODA SDK source, leaked internal documentation, NDA material or decompiled internal Revit implementation code beyond public symbol exports was used, and no code was copied or translated from revit-ifc. The maintainer's additions to this branch (the skip of a beam a column cuts, the probe and the corrections) are from the same sources. puzzbobb's confirmation of their part is asked. Co-authored-by: Griffin Long <[email protected]>
## Summary Release 0.16.0: - Revit 2015 to 2023 projects: beams along their location lines (#1509, RE-362), walls joined by their join lists and angled walls along their lines (#1517, RE-364), `Phase Created` (#1521, RE-368), `Constraints` Level parameters (#1522, RE-369), pipes with their type, cylinder and ports (#1523, RE-370), and Revit 2015 files following the export phase (#1332, RE-372). - Revit 2026 and 2027 projects: beams, stair runs, tread landings and sketch outlines (#1426, RE-341), and pipes, ports, door and window cuts and the 2025 properties (#1454, RE-346). Revit 2025 beams, tread landings and sketch arcs (#1440, RE-345); shaft cuts on 2024 only. - Spaces: Areas of Revit 2025 to 2027 (#1428), `rac_advanced`'s Areas from Revit's plan topology (#1261, #1434), `SpaceKind` on every `IfcSpace` (#1437), and the room phase fallback (#1359). - Doors and windows: Revit's placement axes (#1447, RE-347), a door in no wall at its stored origin (#1494, RE-361), and both flips decoded (#1357, RE-343). - Values Revit's export writes: wall-cut openings (#1165, RE-338), `FireRating` and `Manufacturer` (#1185, RE-354), cut column quantities (#1203, RE-353), Furniture Systems (#1444, RE-352), and a plumbing fixture that draws nothing left out (#1496, RE-363). - Walls: hosts of embedded curtain walls from their saved mesh (#1385, RE-340), profile-edited ends, bases and cut-outs (#1396, #1410, #1411, #1473), previous location lines (#1475, RE-360), and floor voids tagged as Revit tags them (#1408, RE-355). - The writer: IFC4 EXPRESS rules held (#1430), non-finite numbers refused (#1559); the diagnostics, elements CSV, viewer panels and MCP server count and place what the IFC writes (#1327, #1417, #1422, #1424); export memory restored (#1429). - The viewer's saved parameters panel (#35, RE-207); the provenance table's new sources (#1368, #1498); the native readers' speed-ups (#1335); release tag preflight and attested wheels (#1457, #1466); measured numbers named by model (#1192); Measure's semantic diff (#1334). ## Changes - Version 0.15.0 -> 0.16.0 in: - Cargo.toml; - rvt-py/Cargo.toml and its `=` pin; - rvt-mcp/Cargo.toml and its `=` pin; - rvt-wasm/Cargo.toml; - tools/stream_evidence/Cargo.toml; - viewer/package.json; - CITATION.cff (version and date); - Cargo.lock and fuzz/Cargo.lock. - `python3 tools/release/changelog.py assemble`: 56 fragments go into `[0.16.0]`, with an introduction, a "Not measured" paragraph, credits and "Upgrading from 0.15". - README: the latest release and the "Upgrading from" pointer. ## Testing - **Measure 42555357168**, `main` at 9c66e9b against v0.15.0, unfiltered with timing: the reference models, the BIM4LCA office, Revit 2025, Autodesk's samples of every release, the held-out models, `rac_advanced`'s IFC2X3 pairs and BIMcollab, 118 exports (no families). Every figure in the "Measured against 0.15.0" paragraph is from it: - 97 exports move and 21 do not; - no property value or quantity goes from equal to different or missing on any model; - the IFC4 rules check finds nothing on all 118; - the `same-project gates` check passes on 9c66e9b; - time is 1.015 in total over 68 files, and peak memory 0.54 to 1.29 times 0.15.0's. - Since 9c66e9b this branch adds only the version strings, the changelog and the witness and fixture refresh. - `python3 tools/ci/release_preflight.py check --event workflow_dispatch --ref-type branch --ref-name checkout --sha HEAD` reads version 0.16.0 in every file. `changelog.py check` finds no fragment left, and `measured_numbers.py` and `api-doc-ids.py` pass. - **Witness and fixtures** come from this pull request's CI run 42555924918, on 4dac3e6. - The changes are `witness_version`, the two verdict hashes and the fixtures' version strings. - Both rvt-rs observations also gain RE-354's one diagnostic note ("1 type text parameter(s) ... left out"), which the committed observations had missed since #1185. - Both verdicts replay PASS locally with CI's arguments, byte-identical to the committed ones. - **Release review** (rvtReview's second read) blocked on two overclaims, and both are fixed: - `IsExternal` on 2026 and 2027 walls, curtain walls, members and plates; - the same-project check's reach. It found two dropped caveats, also fixed: the beam rule's reach (#1514) and #1489's two doors. Its two minor points were fixed too: the non-finite refusal's scope and the wall-hosted origin. - Checking the run myself added three corrections: the held-out pipe, wall and beam counts on 2015 to 2023 (the notes had said none was scored), Vitoria's 44 `InvertElevation` values counted apart, and the pipe entry's matching claim. ## Audit-honesty checklist - [x] The introduction keeps each entry's caveats and adds a "Not measured" paragraph: the 2015 to 2023, 2026 and 2027 readers held to the same project's other save, and 2015 to 2023 scored on held-out projects only, as counts; the 2025 to 2027 and Snowdon Towers Areas checked against no Revit export; the one-project Furniture Systems and wall end order; the office-only thresholds; the door origin; the release workflow checks first run by this tag. - [x] No emojis, private paths or internal jargon. ## Legal and contribution hygiene - [x] Apache-2.0; no Autodesk proprietary source, decompiled internals or NDA'd SDK content. ## Breaking changes Behaviour changes are listed under "Upgrading from 0.15": the diagnostics' `building_elements` and `by_ifc_type` count only written elements, door and window placements and their rotations move, Furniture Systems change class, a space has no material association by default, the room schedule gains a column, and a non-finite export is refused. The stable API's changes are additions; `semver checks` in this pull request's CI reports on them. ## Related issues Refs #1190, #869, #1165, #1185, #1203, #1261, #1194, #1332, #1334, #1335, #1357, #1359, #1368, #1385, #1396, #1408, #1410, #1411, #1417, #1422, #1424, #1429, #1430, #1437, #1440, #1444, #1445, #1447, #1457, #1465, #1466, #1473, #1475, #1492, #1494, #1496, #1498, #1559, #35, #155, #156, #1158, #1192.
…RE-351) (#1476) ## Summary #1471 asks whether the 16 `rac_basic` walls that its 2025 and 2026 saves draw to different extents are a reader defect or an edit of the project. They are a reader defect. The probe on all 13 saves (Measure run 42106436497, head b2b5716) shows the 16 walls' record boxes, base and top Levels, joins and top-join element equal on every save, so the project was not edited; what differs is the top. On the 2026 and 2027 saves each of the 16 is cut at 5.7265 m, the underside of roof 243274's record box (15 of them on 2024, 428745 not), and on the 2025 save none is cut, though the 2025 save's walls name the same roof as top cutter. The roof is a roof by extrusion on every save that only the 2025 reader reads (`SKETCH_SPLINE_SUPPORTED_REVIT_VERSIONS` is 2025 alone), so the other readers draw it as its record box, 3.472 m deep, and the wall-top pass (RE-267) takes a record box for a roof with a level underside. The change: a roof is a cutter of a wall's top only where its record box is exactly its type's layers (the proof its underside is level) and its plan outline is read (an L-shaped plate roof drawn over its box's rectangle would cover a wall it does not reach); slabs and footings are as before. **Smaller error, not the right body.** The second read finds Revit's walls attach to the gable's sloped underside: for 13 of the 16 the stored box top equals the roof underside's highest point over the wall's plan to 0.0001 m. The prism this restores is not Revit's body either; the read's rough estimate is about +5.1 m3 over across the 16, against about -13.5 m3 under with the flat cut (not reproduced). Wall 506386 loses five values the roof's box let it carry (`Height`, net and gross volume and side area) and keeps `Length` and `Width`, as on 2025. **What exercises it.** Only roof 243274 exercises the roof-cover path anywhere, and no wall is cut by a plate roof, so the retained `plates.contains` branch is unmeasured. **The same-project pins go.** #1454 pinned these 16 walls in the same-project check (`PINNED_WALLS`, Griffin 2026-11-05) until this work healed them. All 16 are now the 2025 save's, so this removes them: `PINNED_WALLS` is empty and `PINNED_MOST` is 0 in `tools/re/readers_across_saves.py` and `tools/ci/check_same_project_projects.py`. The exception in `docs/maintaining.md` now reads as closed. **Held-out wall heights are now counted.** The held-out AA house (Revit 2026) is the only Revit export whose walls this rule changes. Its scrubbed counts held no wall-height line, so `tools/ci/scrub-holdout-results.sh` now keeps the `wall heights:` count lines of `tools/re/wall_heights_vs_ifc.py`. These are numbers beside the scorer's fixed words, never a Tag, a height or the files' offset. ## Motivation #1471. Griffin, 2026-11-05: #1454's check pins these 16 walls to their exact source and volume until this work shrinks the list; once this lands they leave it. ## Changes - `src/ifc/export_content/wall_tops.rs`, `src/ifc/export_content.rs`: `level_underside` and the set of roofs whose box is exactly their layers and whose outline is read (`plate_roofs`); `cut_wall_tops` skips any other roof as a cutter. - `tools/re/readers_across_saves.py`, `tools/ci/check_same_project_projects.py`: the 16 pins removed, `PINNED_MOST` 0. - `tools/ci/scrub-holdout-results.sh`: the `wall heights:` count lines kept for held-out models. - `probes/examples/probe_re351_wall_top_covers.rs` (RE-351): the record frames, decoded fields, native `SWall` records (for all 16 walls, `read` false where the reader leaves one out) and written bodies of the 16 walls and of roof 243274, on every `rac_basic` save; and each wall's `sets` and `profile_openings`. - `reports/element-framing/RE-351-rac-basic-wall-tops-across-saves.md`, an addendum to RE-346, a changelog fragment, `docs/maintaining.md`, `docs/status.md`, `docs/supported-profile.md`, `docs/evidence.md`, `docs/support-matrix.json` and `docs/format-reconnaissance.md`. ## Testing Unit tests are banned in this repository: nothing is added. - [ ] `tools/check-local.sh` passes: not run locally (no local builds); CI is the build - [x] Verified end to end on real Revit files. - **Unfiltered Measure 42554270370** (head 584c8a89 against `main` at fc29acb; the reference models, the BIM4LCA office as built and at permit, R2025, Autodesk's samples of every year, the held-out models; 118 exports): - 4 exports move: `rac_basic` 2024, 2026 and 2027, and the held-out AA house (Revit 2026). - The other 114 are byte for byte `main`'s, the office's among them (606 of 607 walls with Revit's base and top as built, on both sides). - On the 2026 and 2027 saves all 16 walls are the 2025 save's bodies: of 441 bodies, 424 are the same and 1 differs, roof 243274, the record box `ROOFS_LEFT_AS_BOXES` expects. - The 11 cut-opening hosts are equal with their openings (5 on `main`), and the 16 walls no longer carry the `BodyHeightSource`, `TopCoverElementId` and 506386's five quantities that the 2025 save does not write. - The run's same-project check failed only because the 16 pins healed ("remove its pin" on each). This head removes them. - **Measure 42556745265** (head 8ddb0ad2, the pins removed, against `main` at 9c66e9b; samples 2024 to 2027 and the held-out models): - `same-project gates` passes on 8ddb0ad2, with `pinned walls as pinned 0 of 0` and 440 of 441 bodies the 2025 save's on each of `rac_basic`'s 2026 and 2027 saves; the 441st is roof 243274, the expected record box. - The held-out AA house (Revit 26.4, IFC4X3, counts only) now keeps its `wall heights:` lines. Its walls with Revit's base and top go from 43 to 56 of 59, and those with Revit's base and not its top from 16 to 3, all on Revit's storey. Nothing else in its counts moves. - One more export moves than in 42554270370, the held-out Gdynia 2021. That is the branch's base, which was older than `main` (#1509's beams), and not this change: Gdynia's export on this head equals its export in 42554270370. - Since then the branch is rebased on `main` (the release of 0.16.0). The one conflict, in `docs/format-reconnaissance.md`, kept both addenda (RE-362's and RE-351's). The figures are written into RE-351 section 4, the fragment and `docs/status.md`. No source changed after 584c8a89. - Not run: Snowdon Towers (local only), and the probe on the scoring head. - [ ] If this touches the IFC exporter: the witness verdicts replay: Core Interior's export is byte for byte `main`'s in run 42554270370, so they do not move. ## Audit-honesty checklist - [x] README / docs reflect the state after this PR, with what is not measured labelled "not yet measured on this head" - [x] The change has its entry as a fragment under `changelog.d/fixed/` - [x] A new limitation is documented: a roof that is not a level plate cuts no wall's top, so a wall under such a roof is drawn to its record box, which is not Revit's body (report sections 4 and 5); the base pass has the same flaw for a wall standing on such a roof and is not changed here (the second read files it, with #1470's `decide_base` as the place) - [x] No emojis, no private paths - [x] Reverse-engineering finding: a probe under `probes/examples/` and a dated addendum to `docs/format-reconnaissance.md` ## 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 (the oracle is the same Autodesk sample saved by another release, never stored) - [x] No new fixtures ## Breaking changes None. ## Related issues Closes #1471
…, as Revit's own export writes none (#1472) (#1601) ## Summary A Revit 2026 or 2027 save is now written without an `ObjectType` on any element. Revit's own export of those releases writes none, where rvt-rs wrote `Family:Type`; it is the one difference #1472 recorded on every typed class, and it is Revit's exporter's change, not a misread name. Scope, decided by Griffin on 2026-11-09 through the question tool: from 2026 saves only. The standing rule for values Revit's exports disagree on would leave `ObjectType` out on every release, since Revit 2024 and 2025 exports write it; that would turn about 27,000 elements that agree with those exports on 33 models into missing values. A 2026 or 2027 save can only be exported by Revit 2026 or later, so omitting it there is certain; for earlier saves nothing in the file says which exporter will read it, and they keep `Family:Type`. The existing stair-parts leave-out from 2026 (RE-346) has the same shape. Closes #1472. ## Motivation #1472 found `ObjectType` differing from Revit's own export on every typed class of the held-out 2026 and 2027 pairs, with no explanation. `tools/re/names_vs_ifc.py` now says how each differing pair relates (one is empty, Revit's is the type part of rvt-rs's, a case or spacing difference, the same family with another type, ...) in fixed words and counts, which the scrub keeps for held-out models. Measure run [42609161500](https://github.com/DrunkOnJava/rvt-rs/actions/runs/42609161500) (held-out pairs only, counts): | held-out pair, saved by | typed elements whose `ObjectType` differs | pattern | |---|---:|---| | 2022 (hemanth1986's house) | 6 | rvt-rs writes none (stairs, railings, members) | | 2024, 2025 (hemanth1986's house and office, each) | 0 | | | 2026 (house 82, office 73) and 2027 (house 82, office 73) | 310 | Revit writes none | | 2026 (flowbim's house) | 108 | Revit writes none | That is 418 typed elements of nine classes on the five pairs of 2026 and 2027, and on every one Revit's export writes no `ObjectType`. Its export of hemanth1986's projects saved by 2025 writes `Family:Type` on every typed element (0 differ). Autodesk's own samples agree with this: compared across their 2024 to 2027 saves, `rac_basic`, `rst_basic`, `rme_basic` and `rme_advanced` differ in `ObjectType` only on stairs, flights and stringers, which #1454 had already narrowed. So the difference is the exporter's, from 2026, and the standing rule applies: a value Revit's exports disagree on is left out. ## Changes - `src/ifc/step_writer.rs`: `ObjectType` is `$` when the file's release is `OBJECT_TYPE_LEFT_OUT_FROM` (2026) or later, for every class; it was `$` only for a stair, a flight and a stringer. A `USERDEFINED` `PredefinedType` with no `ObjectType` is left unset, as the existing rule does (#1430). - `src/research/native_stairs.rs`: `STAIR_OBJECT_TYPE_LEFT_OUT_FROM` becomes `OBJECT_TYPE_LEFT_OUT_FROM`, documented for every class. - `tools/re/names_vs_ifc.py`: the pattern census; `tools/ci/scrub-holdout-results.sh`: keeps its count lines for held-out models (fixed words and IFC class names, never a value). - `tools/re/readers_across_saves.py`: a comment. `docs/status.md`, `docs/evidence.md`, `docs/contribution-map.md` (the #1472 row goes), `changelog.d/changed/1472-no-object-type-from-2026.md`. ## Testing Unit tests are banned in this repository: do not add them. Show the change working end to end on real files instead. - [ ] `full / CI passed` on the final head - [x] Verified end to end on real Revit files: unfiltered Measure [42610209239](https://github.com/DrunkOnJava/rvt-rs/actions/runs/42610209239) (head `3dfa9285` against `main` at `b969296e`, `-f samples=true -f nordic=true -f r2025=true -f racadv=true -f bimcollab=true -f holdout=true`, every scorer, 118 models a side; the later commit only adds a sentence to `docs/status.md`): - **15 of 118 exports move, and they are the 2026 and 2027 ones:** the five held-out files of those releases (flowbim's house, and hemanth1986's house and office of 2026 and of 2027) and the ten of Autodesk's samples (`rac_advanced`, `rac_basic`, `rme_advanced`, `rme_basic` and `rst_basic`, each 2026 and 2027). No export of a save of 2025 or earlier moves. - **The 418 differing `ObjectType`s are 0:** each of the five held-out files now reads `ObjectType equal` on all its typed elements, and the scorer diff holds nothing else than those five counts files (21 to 26 lines each). - `diagnostics.json` differs on 0 of the 118 models. The 2026 and 2027 samples hold no `USERDEFINED` `PredefinedType`, so the rule that leaves it unset where there is no `ObjectType` changes none of them. - `same-project gates` pass on the head: 15 samples held to their earlier saves, and the Areas on 4 saves and on the 2021 save. - [x] If this touches the IFC exporter: the witness verdicts replay or the changed observations are refreshed in this PR. The Core Interior witness is a Revit 2024 file and does not move (the scorer diff holds no witness file). ## Audit-honesty checklist - [x] README / docs reflect the current state after this PR: `docs/status.md`, `docs/evidence.md`. - [x] A user-visible change has its entry as a fragment under `changelog.d/changed/`. - [x] If a limitation was resolved, the docs are updated: the ObjectType difference on 2026 and 2027 is gone, and #1472's row leaves the contribution map. - [x] If a new limitation was introduced, it is documented in the PR body and in `docs/status.md`: a save of an earlier release exported by Revit 2026 or later has no `ObjectType` in Revit's export either, and rvt-rs writes it there; nothing in a file says which exporter will read it. - [x] Commit messages describe what changed and why - [x] No emojis in code, docs, or commit messages - [x] No private paths, personal email addresses, or internal jargon in committed files - [x] Reverse-engineering finding: the census is the evidence, from `tools/re/names_vs_ifc.py`; held-out models appear as counts only. ## Legal and contribution hygiene - [x] Apache-2.0. No Autodesk proprietary source, internals or NDA material. - [x] No new test fixtures. ## Breaking changes An element of a Revit 2026 or 2027 save has `ObjectType` `$` where it had `Family:Type`. ## Related issues Closes #1472.
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'sObjectType) 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_basic2026, 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(MEP ports and pipe cylinders outside Revit 2024 and 2025: no 2026 or 2027 MEP model has a Revit export to measure against #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), andROOM_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(Roofs Revit's export decomposes into IfcSlab .ROOF. parts (7 of Snowdon's 20) are written whole #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):
Areais 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.ObjectTypeis not written from 2026 (STAIR_OBJECT_TYPE_LEFT_OUT_FROM, Revit 2026 and 2027: ObjectType differs from Revit's export on every typed class #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 (theholdout=truerun decides). An earlier head of this PR read the type and family on 2025 only, which Measure run 42107917715 showed cost two monolithic flights ofrac_basictheir Names; that is reverted.tools/re/bodies_across_saves.py, newtools/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).rme_basic's 2027 pipes by 0.0038 to 0.0063 ft in the vertex check, and in 115 of the 491IfcPipeSegmentextrusions 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).rac_basicwalls (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, rac_basic's 16 walls differ between its 2025 and 2026 saves by up to 3.19 m: reader defect or project edit #1471 fixes them) and counts the roofs left as record boxes exactly (rac_advanced's 201262 andrac_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.rac_advancedbecome 0 and 14 (the 14 are rac_advanced's 2027 save: 8 walls return no native straight-line row, so the doors and windows they host keep the default axes #1475), the floors rise to the 2025 save's, andrme_advancedandrme_basicjoin the group with 107 doors per year and a ceiling of 0. These are set from 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's diagnosis, and the Measure run of this head prints what each really is.rac_basic's 2027 save (431064 and 485679) write noQto_DoorBaseQuantitiesWidth and Height where 2025 and 2026 write 0.8 and 2.1: not explained from the bytes, rac_basic's 2027 save: two doors write no Width and Height quantities #1489 (it may be the kind of gap rac_advanced's 2027 save: 8 walls return no native straight-line row, so the doors and windows they host keep the default axes #1475 is). The gate holdsrac_basic's properties per release (418 on 2026, 414 on 2027).CUT_LOOP_REVIT_VERSIONSwidening 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.pyno 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): everyIfcDistributionPort, by its host'sTag,NameandFlowDirection, origin to 3 mm and axis to 1e-3.reports/element-framing/RE-346-2026-2027-pipes-ports-cuts-properties.md, an addendum todocs/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.shpasses (fmt, clippy, rustdoc, build, real-file / CLI / contract checks)research/autodesk-sample-projects.tsv(fetched, never stored).ea21dfc6(the code of the head that lands) againstmainat1c088750, 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 bytemain'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 gatespasses on 15 samples and the Areas.rme_advancedandrme_basic, every body is the 2025 save's: 6,605 and 6,650. Onmain, 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 onmainsince RE-370. The placed ports are the 2025 save's, 6,967 and 7,054 against 1,944 and 1,956 onmain.rac_advanced's 2027 save compares its 83 doors and 24 windows and leaves none out (the gate now holds that, ceiling 0).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.IsExternalon walls, plates, members and curtain walls, 2027's Areas, and the tworac_basic2027 doors of rac_basic's 2027 save: two doors write no Width and Height quantities #1489.rac_advanced2027 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.tools/bench.shand attached the before / afterAudit-honesty checklist
changelog.d/<section>/(seechangelog.d/README.md), not inCHANGELOG.mddocs/status.md(stair names and railing heights and lengths come off the unread list),docs/evidence.mdanddocs/supported-profile.md(the 2026 rows; 2027 is "as on 2026", without the Area).ObjectType, are not written (section 5 of the report); two doors ofrac_basic2027 write no Width and Height (rac_basic's 2027 save: two doors write no Width and Height quantities #1489).IsExternalon walls, curtain walls, members and plates is still not written on 2026 and 2027, as before.probes/examples/and a dated addendum todocs/format-reconnaissance.mdare includedtools/re/save_pair_*.pyreproduce the measurement.Legal and contribution hygiene
CONTRIBUTING.md)CLEANROOM.md)testuser,111111,FY-20XX, etc.) and contain no real-world PIIBreaking changes
None. Only release lists change; their constants keep their names and types.
Screenshots or output samples
rme_basic2026 against its 2025 save, run 42545885153,mainthen this change:Related issues
Refs #1190, #1426, #421
Notes
The contributor's change, rebased onto
mainas one commit with puzzbobb as its author; the history before the rebase is kept atrefs/archive/2026-11-08/pr1454-pre-rebuild-66a9cd9c.