Repository navigation
feat(ifc): Revit 2015 to 2023 beams are drawn along their location line (#1190) (RE-362) - #1509
Conversation
…nd a wall at an angle can follow its line (#1190) (RE-364) (#1517) ## Summary Revit 2015 to 2023 walls are joined by their join lists, whose 32-bit layout is now read, and a wall at an angle can be drawn along its location line: on 2021 to 2023 where 2024's rule allows it, and on 2015 to 2020, where nothing marks a slanted wall, only if its record box closes on the line's rectangle. A wall along a model axis keeps its record box cut back at its joins, and no `Length`, `Height`, area or volume is written on these releases. It's a fourth slice of #1190. The line body reaches 24 walls in 12 sample exports and none on Vitoria `ALD26 Before`, `modelo_bim`, `Exemplo_data` or the `racadv` pairs, so **no Revit export read here scores that rule**. Five other held-out exports also move, layer sets on three of them, and are not attributed; the maintainer narrowed the first head after Measure scored it against Revit's exports (RE-364, top of the report). ## Motivation #1190 asks for each capability 2024 and 2025 have on every release from 2015 to 2027. `attach_wall_layers` turned centreline bodies off on every 32-bit release, because "2023's join lists are not read, and a line without them would lose the corners the box already has" (RE-114). `rac_advanced`'s `exported.body_sources` on `main`: | body source | 2023 | 2024 | |---|---:|---:| | `partition_wall_centreline_layer_joins` | 0 | 118 | | `partition_wall_centreline` | 0 | 1 | | `partition_element_record_join_trimmed` | 176 | 58 | ## Changes - `src/research/partition_compound_structure.rs`: `wall_join_lists_32` and `WALL_JOIN_32BIT_REVIT_VERSIONS` (2015 to 2023). The list's count sits 29 bytes past its opening word, after a `u32` and 13 zero bytes, and an entry is `u32 · u32 ElementId · u32`. The 64-bit reader is unchanged. - `src/research/partition_schema_mvp/walls.rs`: `WALL_CENTRELINE_REVIT_VERSIONS` (2015 to 2027) replaces the 32-bit test. 2015 to 2020 have no cross-section word, so an angled wall's body must be the rectangle its box closes on, and otherwise it keeps its box. A wall along a model axis keeps its box on every 32-bit release, and `WALL_UNCUT_FIELD` and `WALL_WHOLE_FIELD` are not set there. `attach_wall_lengths` does not run on 32-bit releases. 2008 to 2014 stay as they were. - `src/research/native_walls.rs`: `native_walls_and_top_joins_into` names `NATIVE_RELEASES`. - `src/ifc/mod.rs`: the export's warning says so on 2015 to 2023. - `tools/re/save_pair_bodies.py`: `--no-openings`, so a wall scores apart from the doors and windows that cut it. - `probes/examples/probe_re364_wall_join_lists_32.rs`, `reports/element-framing/RE-364-2015-2023-wall-lines-and-joins.md`, an addendum to `docs/format-reconnaissance.md`, `docs/status.md`, `docs/evidence.md`, `docs/supported-profile.md`, `docs/support-matrix.json`, `changelog.d/added/1190-2015-2023-wall-lines.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 7da2fb4 (`integration` 301 of 301, 6 filtered out), and `cargo +1.87 check --profile ci --all-targets` is clean. The commit was then rebased onto ab5f8e1, three commits that touch no source or doc file this PR edits; `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.** 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). - **Measure run 42522812941 on the landing code `430a2606`** (main's side `ab5f8e1c`, unfiltered with samples, held-out models, `racadv` and BIMcollab; the landing head adds main's commits and text): 100 of 118 exports are byte for byte main's and 18 move, and `same-project gates` passes. Warmond's wall quantities are main's. Vitoria `ALD26 Before`'s axis-parallel ends are back at 160 of 199, and its angled walls stay as on main (faces 1 of 48, ends 4 of 48): the first head's 33 of 48 is not kept, because the rectangle check refuses them. Layer sets gain on three held-out models. - The `racadv` pairs of 2015 to 2020 are byte for byte main's. RE-120's two projects, Measure 42525247402 (`9bef6e08` against `60cb1a81`, `wall_bodies_vs_ifc`): `Exemplo_data` 17 of 17 and `modelo_bim` 4 of 4 on faces and ends within 0.001 ft on both sides, and both exports byte for byte main's. The commits after `9bef6e08` change the export's warning text and the report, not a body. - The join lists, by `probe_re364_wall_join_lists_32`, each wall's partners against its 2024 save: `rac_advanced` 146 of 146 on each of nine saves of 2015 to 2023, 57 naming a partner; `rst_basic` 9 of 9 on 2016 to 2023; `rac_basic` 46 of 47 on 2016 to 2023, 45 of 47 on 2015. - Walls the change draws along their lines, against the later save, to 3 mm on the world box and 0.1% on the volume (`tools/re/save_pair_bodies.py`), without door and window cuts / with them. Those cuts are read on 2024 and not on these releases, which this PR doesn't change: | save | reference | no openings | with cuts | |---|---|---:|---:| | `rac_advanced` 2015 to 2020 (each) | 2024 | 107 of 118 | 73 of 118 | | `rac_advanced` 2021 | 2024 | 99 of 103 | 70 of 103 | | `rac_advanced` 2022, 2023 (each) | 2024 | 118 of 118 | 80 of 118 | | `rst_basic` 2016 to 2023 (each) | 2024 | 2 of 2 | 2 of 2 | | `rac_basic` 2015 to 2022 (each) | 2023 | 17 of 22 | 17 of 22 | | `rac_basic` 2023 | 2024 | 5 of 18 | 5 of 18 | | `rme_basic`, `rme_advanced` 2015, 2019 (each) | 2024 | 1 of 1 | 1 of 1 | - On `main` the same walls of `rac_advanced` 2023 match on 1 of 118 with no openings, and those of `rst_basic` and `rac_basic` on none. No wall that matched on `main` stops matching. Two walls of `rac_advanced` 2015 to 2020 end farther from the 2024 box than on `main`: 8 mm against 6 mm. - The differences: `rac_advanced` 2015 to 2020's 11 are within 8 mm and 0.21%, and 2021's 4 within 31 mm, with raw boxes that differ too; why is not decoded. `rac_basic` is held to its 2023 save because 13 walls move by up to 3.19 m in its 2024 save, in `main`'s raw boxes as much as here. Of the 5 that differ from its 2023 save, 4 are cut-back boxes on that save and 906885 is 13 mm off, not decoded. `rac_advanced` 2021 draws 103 walls this way, not 118; why is not decoded. - Across 31 saves of 2015 to 2023 with a reference: no element outside walls changes a property, storey or GlobalId, and no element appears or goes. Gained: `Height` on 784 walls, 781 equal to 2024's and 3 not in it; side areas on 481, 462 equal and 19 where 2024 writes none. Footprint area and volumes are the same, but for wall 418079 of `rac_basic` 2015, where `GrossVolume` is 2.42 and 2024's 1.75. No quantity or property is lost or changes value, but for a wall's `StoreyBindSource` below. - One storey moves: `rst_basic`'s wall 627729, 2016 to 2023, from a storey made from its base elevation to `Default Building`, as its 2024 save has it. No Revit export says which is right. - `Length` is left out on purpose. A 2015 to 2023 record reads with no control joins, and `attach_wall_lengths` takes that as joined to nothing: it wrote a `Length` on 44 walls of `rac_advanced` 2023 where 2024 writes none. - Byte identity: of 206 local project files of 2008 to 2027, 170 export IFC and diagnostics byte for byte as on `main` (`SOURCE_DATE_EPOCH=1700000000`). The other 36 are files of 2017 to 2023: 32 change their IFC, and 4 only the warning in their diagnostics. No file of 2024 or later, or before 2015, changes. - [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. No difference above the noise of single runs on this machine, where one export varied between 3 and 6 s. Not benchmarked; #1335 tracks 2015 to 2023 export time. ``` tools/fetch-autodesk-samples.sh samples 2015 2024 for f in samples/*.rvt; do rvt-ifc "$f" -o "${f%.rvt}.ifc"; done S=partition_wall_centreline,partition_wall_centreline_layer_joins python3 tools/re/save_pair_bodies.py samples/2023-racadvancedsampleproject.ifc samples/2024-racadvancedsampleproject.ifc --sources $S --no-openings cargo run --profile ci -p rvt-probes --example probe_re364_wall_join_lists_32 -- samples/2023-racadvancedsampleproject.rvt 2023 walls.txt > 2023.txt cargo run --profile ci -p rvt-probes --example probe_re364_wall_join_lists_32 -- samples/2024-racadvancedsampleproject.rvt 2024 walls.txt > 2024.txt diff 2023.txt 2024.txt ``` ## 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`, `docs/support-matrix.json`. The 2008 to 2014 rows now say "as on 2015, without walls along their lines". - [x] If a new limitation was introduced, it is documented in the PR body and in-code - RE-120's score no longer covers the bodies these releases draw, noted above and in `docs/evidence.md`. Still not read, RE-364 §6: RE-127's joined-wall lists, a record's control joins and with them `Length`, profile openings, end steps, face angles, door and window cuts. - [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 - [x] If this is a reverse-engineering finding: a reproducible probe under `probes/examples/` and a dated addendum to `docs/format-reconnaissance.md` are included - `probes/examples/probe_re364_wall_join_lists_32.rs`. ## 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. New public constants and a function in `partition_compound_structure`; existing names and types are unchanged. ## Screenshots or output samples `rac_advanced` 2023 against its 2024 save, this branch: ``` tools/re/save_pair_bodies.py --sources partition_wall_centreline,partition_wall_centreline_layer_joins --no-openings same 118, differ 0, not in the reference 0 ``` ## Related issues Refs #1190, #1509, #1158 ## Notes Both checks this asked for have been run by the maintainer: Measure with `bimcollab` and `racadv` (42522812941) and RE-120's two projects (42525247402), above. Independent of #1509 in code; they edit the same rows of `docs/supported-profile.md` and `docs/evidence.md`, so the second to merge takes a small conflict. --------- Co-authored-by: Griffin Long <[email protected]>
658b9b7 to
e853e73
Compare
|
@puzzbobb I've rebased this onto The only code conflict was where #1522's Level parameters (RE-369) and your beam passes were both added after The final unfiltered Measure is running (run 42548058739), and once it reports this goes for its second read. Nothing is needed from you. |
e853e73 to
e5f5ba5
Compare
e5f5ba5 to
51d9bd6
Compare
…ne (DrunkOnJava#1190) (RE-362) Co-authored-by: Griffin Long <[email protected]>
51d9bd6 to
dd5dd3b
Compare
|
@puzzbobb this has landed (thank you): Revit 2015 to 2023 beams are now drawn along their location lines, with The final unfiltered Measure (run 42548058739) moves only the 2015 to 2023 samples it names, the six racadv models and held-out Gdynia, where #1518 is next. It was waiting on this one and on your answer to the 8 against 6 count question there. |
## 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
… section (#1190) (RE-365) (#1518) ## Summary Revit 2017 to 2023 steel beams are now drawn as their type's I section, as 2024's are. It's a fifth slice of #1190, measured against the same Autodesk samples saved by a later release, not against a Revit export. It builds on #1509 (RE-362), whose lines these sections are drawn along. ## Motivation #1509 (RE-362) left 11 of `rst_basic`'s 323 beams on 2019 to 2023 with the 2024 save's box and another volume, because `type_i_sections_at` stopped at 2024. `rst_basic` 2023 drew no `IfcIShapeProfileDef`; its 2024 save draws 18. ## Changes - `src/research/partition_type_parameters.rs`: `length_places_within` reads the 32-bit entry `f64 · ff×4 · i32` (`narrow`) in the value block RE-113 found, and `type_i_sections_at` takes it on `I_SECTION_32BIT_REVIT_VERSIONS` (2017 to 2023). The 64-bit path is unchanged and keeps #1489's record-bounded value blocks; the 32-bit path ends blocks at marks alone. - `src/research/partition_schema_mvp.rs`, `.../framing.rs`: the 32-bit branch calls `attach_beam_sections`, for `StructuralFraming` only. A column's section is placed from its transform, which isn't measured on these releases. - `src/research/partition_type_materials.rs`: `VALUE_BLOCK_MARK_2023` is `pub(crate)`. - `probes/examples/probe_re365_i_sections_32.rs`, `reports/element-framing/RE-365-2017-2023-beam-i-sections.md`, an addendum to `docs/format-reconnaissance.md`, `docs/status.md`, `docs/evidence.md`, `docs/supported-profile.md`, and `changelog.d/added/1190-2017-2023-beam-i-sections.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] The required gate passes: `full / CI passed` on the rebased head (fmt, clippy, rustdoc, the test matrix with its `msrv` entry, the i686 job, corpus tier 2, IfcOpenShell, docs, wheels, audits, PII guard). - [ ] 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.** 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). A Measure run with `-f racadv=true` covers `rac_advanced`, but it holds no I section here, so I know of no export that scores these. - The values, by `probe_re365_i_sections_32`, each type's width, depth, web and flange against its 2024 save: `rst_basic` 22 of 22 on 2019 to 2023, and 15 of 15 on the types 2017 and 2018 share with it. - Beams drawn along their lines, against the later save, to 3 mm on the world box and 0.1% on the volume (`tools/re/save_pair_bodies.py`): | save | reference | #1509 | this change | |---|---|---:|---:| | `rst_basic` 2019 to 2023 (each) | 2024 | 312 of 323 | 323 of 323 | | `rst_basic` 2017, 2018 (each) | 2024 | 298 of 323 | 309 of 323 | | `rst_basic` 2016 | 2024 | 285 of 323 | 285 of 323 | | `rst_advanced` 2019 | 2027, not pinned | 48 of 54 | 54 of 54 | | `rac_advanced` 2015 to 2023 (each) | 2024 | 33 of 33 | 33 of 33 | - [Measure run 42580553612](https://github.com/DrunkOnJava/rvt-rs/actions/runs/42580553612) reproduces every row but `rst_advanced` 2019's, whose reference is a local copy that no pin holds: its kept exports (the rebased head `47744d45` and `main` at `58fd08f2`) give 285, 298 and 312 of 323 on `main` and 285, 309 and 323 on this change for `rst_basic` 2016, 2017 and 2018, and 2019 to 2023, and 33 of 33 on `rac_advanced` 2015 and 2023 before and after. - The 14 left on `rst_basic` 2017 and 2018, and the 38 on 2016, are RE-362's: the saves' raw record boxes differ. `rst_advanced` 2019's reference is a local copy of Autodesk's 2027 sample, which no pin holds. - Across all 38 sample saves of 2015 to 2024, 83 beams change: `rst_basic` 2017 to 2023 (11 each) and `rst_advanced` 2019 (6). Each goes from `IfcRectangleProfileDef` to `IfcIShapeProfileDef` and gains `SectionShape`, `SectionWebThickness` and `SectionFlangeThickness`. No other property, storey, GlobalId or element changes. - Byte identity and scorers, [Measure run 42578259103](https://github.com/DrunkOnJava/rvt-rs/actions/runs/42578259103) (the rebased head `47744d45` against `main` at `58fd08f2`, 118 exports: Autodesk's samples of every release, the BIM4LCA office, the Revit 2025 models, `racadv`, BIMcollab and the held-out models): 110 export byte for byte as `main` does. The 8 that differ are Autodesk's `rst_basic` of 2017 to 2023 and `rst_advanced` of 2019, the files that hold the 83 beams above. No scorer output moves, W7's counts included, and the same-project gates pass (15 samples held to their earlier saves, and the Areas on 4 saves and on the 2021 save). An earlier run on the pre-rebase head, [42521217353](https://github.com/DrunkOnJava/rvt-rs/actions/runs/42521217353), had the same 8. - [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. It adds about 0.1 s to a 1.4 s export (`rst_basic` 2023) and to a 1.9 s export (`rst_advanced` 2019), three runs each. ``` 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 cargo run --profile ci -p rvt-probes --example probe_re365_i_sections_32 -- samples/2023-rstbasicsampleproject.rvt 2023 > 2023.txt cargo run --profile ci -p rvt-probes --example probe_re365_i_sections_32 -- samples/2024-rstbasicsampleproject.rvt 2024 > 2024.txt diff 2023.txt 2024.txt ``` ## 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 2015 to 2018 rows now say "as on 2019, without I sections on 2015 and 2016". - [x] If a new limitation was introduced, it is documented in the PR body and in-code - None new. Still not read, RE-365 §6: sections on 2015 and 2016, a column's I section on 2015 to 2023, and 7 of `rst_basic` 2023's 18 I sections, which RE-122 keeps as cut boxes. - [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 - [x] If this is a reverse-engineering finding: a reproducible probe under `probes/examples/` and a dated addendum to `docs/format-reconnaissance.md` are included - `probes/examples/probe_re365_i_sections_32.rs`. ## 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; 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 323, differ 0, not in the reference 0 ``` ## Related issues Refs #1190, #1509, #1514 ## Notes It leaves #1514 open: `-1005502` has no hit on BIMcollab's Revit 2015 example, nor on `rst_basic` 2015 and 2016 or `rst_advanced` 2015, whose sections sit under ids of the document's own. So the 17 of BIMcollab's 91 beams whose volume differs from Revit's export don't change. --------- Co-authored-by: Griffin Long <[email protected]>
Summary
Revit 2015 to 2023 projects now draw beams along their location lines and write their
Span,Slope,RollandLength, 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_mvpthat 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_sourcesonmain:rac_advanced2023 / 2024rst_basic2023 / 2024partition_beam_axispartition_beam_box_along_axisChanges
src/research/partition_schema_mvp.rs: the 2015 to 2023 branch callsattach_beam_rotationsandattach_beam_axes.src/research/partition_schema_mvp/framing.rs: the rotation's native read namesNATIVE_RELEASES(its default stops at 2023; RE-280 measured the framing on 2015 to 2022), and the line is read throughscan_first_bounded_linesbehind the new gate. Both readers skip a beam a column cuts (RE-122): its record box fields are the cut box's, soattach_beam_axeswould test a line against them and attach it where they coincide (5 ofrst_basic's 31 cut beams on each of 2016 to 2023 in the first head); skipping restoresmain's bytes on those beams and cutsrst_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 fromBEAM_AXIS_32BIT_REVIT_VERSIONS: it is not the 32-bit set, 2008 to 2023) andbeam_axis_read_on.BEAM_AXIS_SUPPORTED_REVIT_VERSIONSis left alone because it also gatesscan_bounded_lines, which isn't measured on these releases (feat(ifc): Revit 2025 beams and tread landings, held to the 2024 save (#1440) (RE-345) #1452 has split the sketch curves and shafts off).line_copiesandall_line_copies, which only probes call, gate onbeam_axis_read_ontoo.probes/examples/probe_re362_beam_lines_pre2023.rs:probe_re328_beam_rejectionson 2015 to 2027, counts only, asnative readers:lines the scrub keeps for an unlicensed model.reports/element-framing/RE-362-2015-2023-beam-axes.md, an addendum todocs/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.
tools/check-local.shpasses (fmt, clippy, rustdoc, build, real-file / CLI / contract checks)tools/check-local.sh --corpuspasses on d6f69d9 (integration300 of 300, 6 filtered out), andcargo +1.87 check --profile ci --all-targetsis clean. The commit was then rebased onto 6299876, three CI-only commits that touch none of these files;cargo fmt --checkandtools/ci/api-doc-ids.pywere rerun there.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, onmainand on this head: 0 drawn by line,SpanandSlopemissing on all 91 as onmain. The three.js IFC2X3 export ofrac_advanced, whichracadv-2015toracadv-2020are scored against, holds noIfcBeam(3,308IfcMember, 1,349IfcPlate, 176IfcColumn, 75IfcBuildingElementProxy), and none of the 38 beams has an element with its Tag in it under any class. SoSpanandSlopeare written on 25racadvbeams 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 inresearch/autodesk-sample-projects.tsv(fetched, never stored).tools/re/save_pair_bodies.py):rac_advanced2015 to 2023, against 2024: 33 of 33 on each.rst_basic2019 to 2023, against 2024: 312 of 323 on each.rst_basic2017 and 2018, against 2024: 298 of 323.rst_basic2016, against 2024: 285 of 323.rst_advanced2015, against 2019: 54 of 54.rst_basic2015 is another model (RE-181), so it has no later save. Its 29 beams are only checked within the file.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.Span,Slope,RollandLengthwritten here equal the later save's to 1e-3, exceptSpanandLengthon 13 beams ofrst_basic2016, the ones whose box differs by about 25 mm. Every beam's storey and GlobalId are as onmain.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_line91, nothing refused for its box). The line record this change reads is what Autodesk's 2015 samples hold for 33 of 34rac_advanced, 29 of 39rst_basicand 54 of 64rst_advancedbeams 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).e853e731, this change rebuilt onmainat1c088750, against thatmain, unfiltered with held-out models, BIMcollab andracadv, 118 models. 91 exports are byte for bytemain'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 (BIMcollab Revit 2015: 91 beams hold no bounded line record in the window the reader scans (RE-362 follow-up) #1514), andsame-project gatespasses one853e731. Its figures are those of the earlier run below.racadv). Gdynia (Revit 2021, held out, counts only) is the first Revit export to score a beam this rule draws:Pset_BeamCommon.SpanandSlope3 equal, none different and 7 missing of 10 each; all values equal 689 to 695, different and values Revit doesn't write unchanged. Onracadv2015 to 2020, values Revit doesn't write go 342 to 392 (25Span, 25Slope): that IFC2X3 export holds noIfcBeam, so it is counted apart.racadv, BIMcollab): 26 exports move and nothing else: 20 sample saves (rac_advanced2015 to 2023,rst_basic2015 to 2023,rst_advanced2015 and 2019) and the 6racadvmodels. No 2024 export moves, norrac_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.tools/bench.shand attached the before / afterrst_basic2023 and 2019, single runs).Audit-honesty checklist
changelog.d/<section>/(seechangelog.d/README.md), not inCHANGELOG.mddocs/status.md,docs/evidence.md,docs/supported-profile.md. The 2008 to 2014 rows now say "as on 2015, without beams along their axes".rst_basicand 4rac_advancedbeams keep RE-122's column cut as onmain, withoutSpan,RollorLength(and 333 ofrst_advanced's 397, 120 ofrst_basic2015's 159); I sections aren't tried;tools/re/bodies_across_saves.pyand Measure's gate don't hold these saves, and no Revit export checks a beam this rule draws.probes/examples/and a dated addendum todocs/format-reconnaissance.mdare includedtools/re/save_pair_bodies.pyreproduces the measurement.Legal and contribution hygiene
CONTRIBUTING.md)CLEANROOM.md)testuser,111111,FY-20XX, etc.) and contain no real-world PIIBreaking changes
None. A new public constant and function; existing names and types are unchanged.
Screenshots or output samples
rst_basic2023 against its 2024 save, this branch: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_onstays 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.