Repository navigation
feat(elements): read Revit 2015 to 2022 element records in the 32-bit layout (RE-180, RE-181) - #742
Conversation
|
Thank you for this. CI on its original base passed everything except I read the whole diff, including #741's commit inside it. Reading 2014 to 2022 through 2023's readers with each release's own schema tags (
I'll also run the Measure workflow with Autodesk's 2016 to 2023 samples and your two probes, to reproduce your tables on the runners before it lands. |
|
Thanks for the update. CI passes on it now too. Two items from my review are still open: the contributor declaration, as on #740, and the source and licence of the 2014 project and the three 2015 templates, which the 2014 and 2015 rows of |
|
The changes in this PR are based on byte observations of Revit files (CLEANROOM.md Accepted sources 1): Autodesk's public sample projects Source of the 2014 and 2015 files
|
|
Thank you, that's everything I needed. I'll keep 2014 out of |
057f27a to
1bbb4ca
Compare
|
Landing steps done on your branch: 2014 is left out everywhere this PR gated it, so it fails closed ( |
1bbb4ca to
b419630
Compare
|
Measure on Autodesk's samples (run 39161812159) reproduces your tables: |
… saved by another release (#740) (#742) (#799) ## Summary Measure can now run a two-file probe on each Autodesk sample and the same project saved by another release. A new `sample_years` input limits a run to the releases a comparison needs. ## Motivation #740 and #742 check their readers by comparing each sample with the same model saved by a release rvt-rs already reads: 2027 against 2026, 2019 to 2022 against 2023, 2016 to 2018 against 2019. Measure could not run those comparisons, because its samples loop calls a probe with one file and `--records`. In #740 that call read `--records` as a path, so Measure confirmed only that element totals match. The per-ElementId and per-field tables in the README and the CHANGELOG were measured only on the contributor's machine. With this mode those tables are re-measured on the runners. ## Changes - `.github/workflows/measure.yml`: two new inputs, both passed to the steps through `env`: - `probe_pair_release`: the release whose copies the samples are paired with; - `sample_years`: the first and last year handed to `tools/fetch-autodesk-samples.sh`. One year means from that year on, and empty means every release, as before. - `tools/ci/measure-reference-models.sh`: when `PROBE_PAIR_RELEASE` is set, each sample of another release is paired with the copy of the same project saved by that release and gets a `probe-pair.txt`. The probe is called with the sample first and the copy second, which is the argument order of `probe_re179_revit_2027` (`<file.rvt> [<other release's copy.rvt>]`) and of #742's two probes (`<old> <2023 or 2019 copy>`). The output ends with the probe's exit status. A project is identified by its file name without the year, the underscores and the `sampleproject` suffix, because 2016's `rac_basic_sample_project` is 2020's `racbasicsampleproject`. On the 49 pinned files this gives 10 projects: three span 2016 to 2027, two span 2024 to 2027, and five are Snowdon Towers 2024 models. No file maps to two projects. - `CHANGELOG.md`: a Research entry. ## Testing - `bash -n` and `shellcheck -S warning` pass on the script, and `yaml.safe_load` parses the workflow, which has 12 inputs and the new `env` on both sample-fetch steps. - A dry run of the pairing loop used empty sample files and a stub probe that prints its arguments. `2027-racbasicsampleproject.rvt` was paired with `2026-racbasicsampleproject.rvt`, and `2027-rstbasicsampleproject.rvt` with `2026-rstbasicsampleproject.rvt`. The 2026 files and a 2027 project with no 2026 copy got no `probe-pair.txt`. - End to end, dispatched from this branch: - [39164968387](https://github.com/DrunkOnJava/rvt-rs/actions/runs/39164968387): `main`, samples 2026 to 2027, `probe_re179_revit_2027`, paired with 2026; - [39164970308](https://github.com/DrunkOnJava/rvt-rs/actions/runs/39164970308): #742's head, samples 2019 to 2023, `probe_re180_revit_2019_2022`, paired with 2023; - [39164971874](https://github.com/DrunkOnJava/rvt-rs/actions/runs/39164971874): #742's head, samples 2016 to 2019, `probe_re181_revit_2015_2018`, paired with 2019. Results: - 2027 against 2026, on `main` (70984ce): all five pairs ran. 20,818 of 20,818 ElementIds hold the same class in both files, and 363,072 of 363,256 fields agree. That is the 184 differing fields RE-179 reports, but 616 more agreeing fields than its 362,456 of 362,640, which were measured on an earlier base. - 2019 to 2022 against 2023, on #742's head (b419630): all 12 pairs ran. Every `rst_basic` and `rac_advanced` row equals RE-180 §6's, and so do the marker counts and schema tags. On `rac_basic` the runners read one element fewer in both files (621 / 638 against 622 / 639 on 2019) and 79 more agreeing fields. - 2016 to 2018 against 2019, on #742's head: all 9 pairs ran. Every `rst_basic` and `rac_advanced` row equals RE-181's. `rac_basic` shows the same one element and 79 fields as above. - The same 2016 to 2019 run at #742's two earlier heads, [39165469646](https://github.com/DrunkOnJava/rvt-rs/actions/runs/39165469646) (057f27a) and [39165501259](https://github.com/DrunkOnJava/rvt-rs/actions/runs/39165501259) (97cf970), prints the same numbers as at the landing commit. In each run, no sample of the pair release itself got a `probe-pair.txt`. ## Audit-honesty checklist - [x] README / docs reflect the current state after this PR - [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 - N/A: no reverse-engineering finding, no IFC output change. ## Legal and contribution hygiene - [x] I agree this work is licensable under Apache-2.0 - [x] This PR contains no Autodesk proprietary source, decompiled internals, or NDA'd SDK content - [x] No new fixtures. Autodesk's samples are fetched for the run from their pinned hashes and never stored. ## Breaking changes None. Without the new inputs, Measure runs as before.
b419630 to
6bcf062
Compare
|
Measure can now run a two-file probe on each sample beside the same project saved by another release (#799). I reran both of your comparisons on GitHub's runners at this PR's head:
Most of it reproduces exactly:
I got the same runner numbers at your two earlier heads, 057f27a (39165469646) and 97cf970 (39165501259). The pinned files' hashes are the ones your reports list. So no commit on this branch gives 622 on the runners. If you still have the tree that did, its I have corrected the |
…P and rst_advanced ones for Measure (#742) (#801) ## Summary Pins Autodesk's six Revit 2015 sample projects for Measure, plus the 2019 `rme_basic`, `rme_advanced` and `rst_advanced` projects, so that #742's 2015 to 2018 reader and RE-180's 2019 reads of those projects can be checked on GitHub's runners. ## Motivation #742 reads Revit 2015 to 2022 element records. Measure's sample corpus started at 2016, so its 2015 evidence was only Autodesk's 2015 templates on the contributor's machine. RE-180's 2019 MEP and `rst_advanced` exports came from local copies too. Autodesk's download host has all of them. Revit 2015's samples are under `2015RVT_RTM/Docs/`, not `Docs/InProd/`, which is where the 2016 to 2027 ones are and where the earlier search looked. ## Changes - `research/autodesk-sample-projects.tsv`: nine rows, 58 in all: - 2015 `rac_basic`, `rst_basic` and `rac_advanced`, in year order; - a new block with the 2015 `rme_basic`, `rme_advanced` and `rst_advanced` and the same three projects for 2019. I downloaded each file from the URL in its row and took its hash and size from the downloaded file. All are OLE compound files. Their file info names the release and build that saved them: - the 2015 files: Revit 2015, build 20140117_1515 or 20140120_2215; - the 2019 files: Format 2019, build 20180123_1515. - `.github/workflows/measure.yml`: the samples span reads 2015 to 2027. - `docs/reference-models.md`: which samples are pinned, and where Autodesk keeps 2015's. - `CHANGELOG.md`: a Research entry. ## Testing - Measure run [39173916922](https://github.com/DrunkOnJava/rvt-rs/actions/runs/39173916922), dispatched from this branch: - pins and fetcher from this branch; - reader and probe from #742's head; - `-f samples=true -f sample_years="2015 2019" -f probe=probe_re181_revit_2015_2018 -f probe_pair_release=2019`. Its fetch step checks every row's hash and size, and all 21 samples of 2015 to 2019 were fetched and read. Results: - **2015 schema tags:** each 2015 file's tags equal the 2015 column of `schema_tags`, which had been read from Autodesk's 2015 templates. - **Record framing:** each 2015 file has a declared ElementId 52 bytes before every record marker but 4 to 6. - **Against the 2019 copies:** on five 2015 projects every shared ElementId has the same class: `rac_advanced` 5,773 of 5,773, `rme_basic` 6,899, `rme_advanced` 6,842, `rst_advanced` 953 and `rac_basic` 621. The 2015 `rst_basic` shares no ElementId with its 2019 copy; it is another model. - **Element counts:** the 2019 `rac_advanced`, `rme_basic`, `rme_advanced` and `rst_advanced` read 5,773, 6,904, 6,860 and 1,025 production elements, the counts RE-180 §7 gives. - **Validation:** all nine new files export and pass IfcOpenShell's validation with no finding. The per-field details go into RE-181 on #742. - `yaml.safe_load` parses the workflow, and no (year, file) pair is pinned twice. ## Audit-honesty checklist - [x] README / docs reflect the current state after this PR - [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 - N/A: no reverse-engineering finding of its own. ## Legal and contribution hygiene - [x] I agree this work is licensable under Apache-2.0 - [x] This PR contains no Autodesk proprietary source, decompiled internals, or NDA'd SDK content - [x] No file is committed. The samples are Autodesk's and are fetched for a run from their pinned hashes; their terms are noted in the pin list, as for the other samples. ## Breaking changes None. Measure's full samples run reads nine more files.
… layout (RE-180, RE-181) (DrunkOnJava#742)
6bcf062 to
c308eba
Compare
|
2015 is now checked on the runners too. Autodesk's download host has all six Revit 2015 sample projects, under Run 39173916922 read them with this branch's probe, each against its 2019 copy:
The differing fields are mostly RE-82's type-material scan (5,174, as in your RE-180 §6 list for I have added this to RE-181:
The README, CHANGELOG, supported profile and support matrix now cite the 2015 sample projects rather than the templates, and RE-180 points at the new 2019 pins. The landing commit is now c308eba, still authored by you. It lands once CI is green. |
|
Landed as 876bb3f, with you as the author. Thank you: 2015 to 2022 now read from their records, and every comparison in the two reports can be rerun on the runners with the command in each report's Reproduce section. |
…as releases rvt-rs reads (#838) ## Summary `rvt-inspect` and `rvt-corpus doctor` take Revit 2015 and 2027 files as releases rvt-rs reads, as they already take 2019 to 2022. Before, both reported such a file as an unsupported version before looking at its export. ## Motivation Since RE-179 (#740) and RE-181 (#742), rvt-rs reads the element records of Revit 2015 to 2022 and 2027 projects, experimentally. `rvt-inspect` still set `supported_revit_version` from 2016 to 2026 and returned `unsupported_revit_version` before classifying the export, and `rvt-corpus doctor` failed the same years as `unsupported_version`. Codex found this reviewing the 0.6.0 release pull request (#837), which claims the new releases. ## Changes - `src/bin/rvt_inspect.rs`: `supported_revit_version` is 2015 to 2027, and the unsupported message names that range. - `src/bin/rvt_corpus.rs`: `doctor` fails a file as `unsupported_version` outside 2015 to 2027. - CHANGELOG: the entry goes in #837's `[0.6.0]` section, which lands next. ## Testing CI on this pull request: `tests/rvt_inspect_cli.rs`, and `tests/json_schema_contracts.rs`, which validates `rvt-inspect`'s JSON against its schema. Their files are of 2016 to 2026, so the widened range changes nothing they report. No 2015 or 2027 file is in CI's corpus tiers, so these two CLIs have not been run on one; their export of such a file is RE-179's and RE-181's, measured on Autodesk's sample projects. No unit tests, by the repository's rule. ## Audit-honesty checklist - [x] README / docs reflect the current state after this PR - [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 ## Legal and contribution hygiene - [x] I agree this work is licensable under Apache-2.0 - [x] This PR contains no Autodesk proprietary source, decompiled internals, or NDA'd SDK content ## Breaking changes For a Revit 2015 or 2027 file, `rvt-inspect` reports its export readiness instead of `unsupported_revit_version`, and `rvt-corpus doctor` checks it instead of failing it as `unsupported_version`. <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Low Risk** > CLI-only version gating and messaging; behavior changes only for 2015/2027 files, matching existing parser support. > > **Overview** > Aligns **`rvt-inspect`** and **`rvt-corpus doctor`** with the library’s actual read range by treating Revit **2015–2027** as supported instead of **2016–2026**. > > **`rvt-inspect`** now sets `supported_revit_version` with `2015..=2027` (with a comment pointing at RE-179–RE-181) and updates the unsupported-version message to name that range. Revit 2015 and 2027 files can proceed to export-readiness classification instead of stopping at `unsupported_revit_version`. > > **`rvt-corpus doctor`** uses the same bounds for the `unsupported_version` bucket and updates its failure text accordingly, so those years are triaged through streams, schema, and export like other supported releases. > > <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit 8f5db11. Configure [here](https://www.cursor.com/dashboard/bugbot).</sup> <!-- /CURSOR_SUMMARY -->
## Summary Prepare v0.6.0. Merging this is not the release: the release is the signed `v0.6.0` tag on the merged commit, after the maintainer's go-ahead. This stays a draft until then. ## Motivation Since 0.5.1, `main` has: - **IFC4's own property sets (#822):** the IFC2X3 sets 0.5 took from Revit's exports of the RE1 models are gone or moved to where IFC4 and Revit's own IFC4 export put them (#825, #829, #833), and Measure checks every export's standard property sets against buildingSMART's published IFC4 property set definitions (#826). That is rvt-rs's own check: buildingSMART's Validation Service has not been run on the exports, and quantity sets are not checked. - **More of what Revit's exporter writes:** parameters named for an IFC4 property set's property (RE-194, #815, #817/#821), each element's `IsExternal` (RE-193, #814), a type's Fire Rating (#830), a door's overall size (#788), Revit 2024 Areas as spaces (#811), port types and electrical flow directions (#832), rooms with no number (#818), pieces' property sets (#819), a room's floor finish in IFC4's set (#820). - **Older and newer releases, experimentally:** Revit 2015 to 2022 (#742) and 2027 (#740) element records. - **Fixes:** Export to IFC As on fixtures, stairs, doors, curtain walls and wall sweeps (#796, #804, #812, #813), the latest copy of an element's or type's data (#803, #809), declared ElementIds (#797), diagnostics naming the file, not its folders (#785), the browser viewer's wasm32 string-length panic (#835), and `rvt-inspect`, `rvt-corpus doctor` and the viewer's File Status taking Revit 2015 and 2027 as releases rvt-rs reads (#838). - **CI and release:** IfcOpenShell 0.9.0.post1 (#795), Rust installed with rustup (#793), a tag publishes nothing until the maintainer approves it (#786, #787), and Measure's office, R2025, paired-probe and per-sample hashing (#790, #799, #805, #806). ## Changes - **Versions 0.5.1 → 0.6.0** in the nine files that carry them: `rvt`, `rvt-py` and its pin, `rvt-wasm`, the `stream_evidence` pin, `CITATION.cff` (with `date-released`), `.release-please-manifest.json`, `viewer/package.json` and both lockfiles' workspace entries. - **CHANGELOG:** `[0.6.0] — 2026-10-19`, with an introduction, **Upgrading from 0.5** (the property sets that moved, the public API changes, the releases that now export elements) and the outside contributors credited: puzzbobb (#740, #742, #798), Erry91 (#788) and MadsHolten (#835). The section's headings were already single; its 41 entries are all kept, with #835's and #838's added. Its introduction says the property sets match buildingSMART's published IFC4 definitions by rvt-rs's own check, as does the README's release summary. - **README:** "Release 0.6.0 and main" names v0.6.0 and summarises what it added. The lines that said `main` reads Revit 2015 to 2022 and 2027 now say experimental (since 0.6.0). The opening and "Not yet" lines name those releases, and so does the capability table. The bullet list of what 0.5.0 added is gone; #832 had put 0.6.0's port types in it. As Codex found, the IFC4 export row, the viewer paragraph and the decoder-work paragraph also said 2022 and earlier export only the scaffold, and the by-input table skipped 2014; they name 2015 to 2022, 2026 and 2027 now. - **Witnesses:** the IFC header carries the version, so both Core Interior `rvt-rs.json` observations and their verdicts are refreshed from this pull request's CI run. ## Testing - CI on this pull request, the witness replays included. - Measure on `main` at 23a9d76, which is everything in this release but #835's wasm32-only fix and #838's CLI and viewer version range, neither of which changes an export: run [39273188597](https://github.com/DrunkOnJava/rvt-rs/actions/runs/39273188597). All 89 exports (the reference models, both BIM4LCA office files, Autodesk's 58 sample projects and the 23 R2025 models) have no finding in Measure's IFC4 property set check (#826, against buildingSMART's published definitions), and IfcOpenShell's schema validation finds nothing on any of the 89; none was too large to validate. - Witnesses: both Core Interior observations and verdicts are taken from this pull request's CI run 39275014518; only `witness_version` and the verdict hashes differ, and CI's replay on b82c0c3 passes. ## Audit-honesty checklist - [x] README / docs reflect the current state after this PR - [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 ## Legal and contribution hygiene - [x] I agree this work is licensable under Apache-2.0 - [x] This PR contains no Autodesk proprietary source, decompiled internals, or NDA'd SDK content ## Breaking changes See **Upgrading from 0.5** in the CHANGELOG: standard property sets moved to IFC4's, and five public API changes. <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Low Risk** > Version and documentation-only release prep with no runtime code changes in this PR. > > **Overview** > **Bumps the workspace from 0.5.1 to 0.6.0** across `Cargo.toml`, `rvt-py` / `rvt-wasm` / `stream_evidence` pins, lockfiles, `viewer/package.json`, `.release-please-manifest.json`, and `CITATION.cff` (release date 2026-10-19). > > **Documents the release:** adds the `[0.6.0]` section to `CHANGELOG.md` (IFC4 property sets, broader Revit export parity, experimental 2015–2022/2027 element export, wasm viewer fix, and **Upgrading from 0.5** breaking notes). **README** now treats v0.6.0 as the current release—updates the support matrix and “Release 0.6.0 and main” to describe shipped capabilities instead of the old 0.5.1 bullet list. > > No application or library source changes in this diff; it packages and narrates work already on `main`. > > <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit c8826b82982270fd4f47b8da656f2e3e6021c76b. Configure [here](https://www.cursor.com/dashboard/bugbot).</sup> <!-- /CURSOR_SUMMARY -->
|
This shipped in v0.6.0, on crates.io, PyPI, the release archives and the container image: Revit 2015 to 2022 projects export their elements, as experimental, and the release notes credit you. Thank you. |
…what the research they cite measured (batch 7) (#1930) ## Summary Comments, module docs, five reports and the `rvt-ifc-compare` notes said something different from the research they cite. Each place now says what the report measured and what the code does. No code path changes: every edit is a comment, a doc, a report line or a note string. ## Motivation A read-only audit of every research report the code cites (batch 7: 40 DeepSeek auditors and 40 verifiers, worker text used only as input) checked, at about 30 citing places per worker, whether the code still does what each report established. Claude re-read every finding against the code and the report before it was used. Two findings that needed a code decision went to #1929, and rvtReview settled both: the GlobalId rule stays (its docs move in rvtReview's RE-459 PR), and RE-299's sentence changes here. Refs #1929. ## Changes Where the code was right and the text was wrong: - **RE-29**: room number offsets. The measured constant is 505 = `0x1f9`, so the tables in the reader, the probe and the report put the number's length and the number 4 bytes early. The report gets a dated correction that also checks it against its own name-offset histogram. - **RE-24, RE-107, RE-260, RE-81**: the Level record's flag word is `0x8f`, as RE-24 shows, not `0x87`. On 2023 the container reference is a `u32` 16 bytes after the category, not 2024's place. - **RE-20, RE-24**: `level_bind`'s module doc no longer says Level ids cannot be recovered. - **RE-85**: `preceding_reference` is RE-23's slot rule, which RE-85 replaced. Only probes read it now. - **RE-127**: `element_record_wall_joins`'s honesty notes now say the 9 L-corner ends are decided, 360 of 360. - **RE-126**: the wall flip is one byte and a flag, not a third `u32`. - **RE-36, RE-35**: second-prologue ids come from the enclosing record. RE-34's inference was removed. - **RE-33**: the product category list has grown past thirteen. - **RE-390, RE-254**: railings join the stair their record names (`m_stairsId`), except one on a component. - **RE-47**: 26 of 26 stairs and 23 of 26 run sums, not 29. - **RE-75**: the arc centre and radius are within 0.001 ft, as measured. - **RE-119**: the framing top-level rule runs on every 32-bit release, 2008 to 2023. Only 2023 is measured against Revit's export, 2015 to 2022 only against each project's 2023 copy (#742), and 2008 to 2014 not at all. - **RE-18, #410**: `tagged_ancestor`'s doc said a subtype like `ArcWall` is the ancestor it returns, and repeated RE-18's 'not in the schema', which was the old 64 KB scan. - **RE-25**: 3688 sketch-line records, 3070 distinct ids, 126 owners, as the report and the CHANGELOG say. The code docs said 3106, 3724 and 135, which have no source. - **RE-358**: the profile-stub rule asks nothing of the joins. Its second Measure run dropped a join-partner condition that refused every end the first run carried. - **RE-116 / RE-259**: two slots on Revit 2018 and earlier, as `pattern_slots_32` reads them. - **RE-134**: the curve-field scan runs on 2025 to 2027, not 2024 and 2025. - **RE-135**: undeclared records include some of the project's own, not only loaded families'. - **RE-166**: the panel material offset rests on RE1's panel types. The Snowdon claim cited to RE-72 has no source. - **RE-199**: hip and gable roofs are drawn now. - **RE-204**: washer-dryers are not in `partly_unset`, so Revit writes no `<Unnamed>` for them. - **RE-238, RE-384**: the 8 sloped office floors are drawn along their plane and take their `PitchAngle`. - **RE-252**: the wall quantities doc had come loose onto `add_curtain_wall_length`, and is moved back to `add_wall_quantities`. - **RE-286**: type objects carry no `IsExternal`. - **RE-380**: a pocket's tag is its stretch's first line, not the highest id. - **RE-444**: the frame order row in `docs/export-diagnostics.md`. - **RE-445**: units equal on 101 of 103 files. - **RE-449**: the 1,190 and 1,174 offsets are the curtain door's. The mullion grids' are 1,130 and 1,114. Where a report misstated its own code: - **RE-58**: the layer tolerance is 0.02 ft, not 1e-4, and has been since RE-53. - **RE-53**: widths must be under 10 ft and at least 0.001 ft. Only a membrane or deck may be 0. - **RE-299**: what an unread family does, in rvtReview's wording from #1929. User-visible: - **`src/ifc/compare.rs` and `docs/ifc-compare.md`**: the compare notes cited #23, #219 and #238, all three done, and RE-23's host slot. They now give RE-127, RE-85 and RE-27, and #227's actual open gap. Changelog fragment `changelog.d/fixed/b7-compare-catalogue-notes.md`. Checked and left alone: - **RE-162**: Revit's export does write `IfcRelServicesBuildings`, one per system (RE1 Electrical 13 of 13, Mechanical 5 of 5, Plumbing 8 of 8). - **RE-340**: the 2024 to 2027 reach holds because 2023's records give no embed steps. - **RE-178**: the code's 1e-9 ft is stricter than 1e-6 ft, and no measured comparison lies between. ## Testing N/A for end-to-end: no exported value can move. Every changed `.rs` line is a comment, a doc comment or one of the compare note strings, which no test pins (`grep` over `tests/`, `docs/`, `tools/`). - `rustfmt --check` on every changed file - `python3 tools/ci/api-doc-ids.py`: every cited RE has a report - `python3 tools/release/changelog.py check`: 21 fragments valid Fast CI covers rustdoc and clippy. ## Audit-honesty checklist - [x] README / docs reflect the current state after this PR - [x] A user-visible change has its entry as a fragment under `changelog.d/fixed/`
Revit 2015 to 2023 element records (RE-180, RE-181, #421)
Follows #741 (Revit 2019 to 2022, RE-180, folded into this PR) and is made on top of it. Revit 2015 to 2018 write their element records in the same 32-bit layout as 2019 to 2023, so the readers from #741 now read them too, using each release's own schema tags. Before this change, a 2015 to 2018 project exported no building element.
What changes
REVIT_32BIT_RELEASESis now 2015 to 2023, andschema_tagsgains rows for 2015 to 2018. Each release's tags were read from its own schema. (2014 is left out; see the maintainer notes.)0xffffef6fwhere 2019 and later hold the instance kind0xffffef7f. Without this, no Level became a storey and no element was bound to its Level.LEVEL_PLACEMENT_KIND_2015now reads as the instance kind.rac_basicwhose type was ambiguous, and 5 roofs of the 2016 samples that had no type. 2019 to 2023 are unchanged.Checked
There is no Revit export of a 2015 to 2018 file. The oracle is the same Autodesk sample saved by Revit 2019. The samples are pinned in
research/autodesk-sample-projects.tsv, and none is committed.rac_basic, fields agreeing / differingrst_basicrac_advancedrst_basic's renamed families (RE-181 §6).rac_basicand the 2017 and 2018rac_advancedexports match the 2019 exports line for line, apart from GlobalIds.cargo fmt --checkandcargo clippy --all-targets -D warningsare clean.cargo test --test integrationwith the local corpus: 261 passed and 1 failed. The failure issynthetic_project_emits_valid_ifc4, which fails the same way on feat-2019-2022 #741's head.The table is the runners' (maintainer notes). Autodesk's six 2015 sample projects (pinned by #801) frame their records as 2019 does and carry the 2015 tags, and on five of them every ElementId shared with the 2019 copy has its class. The sixth,
rst_basic, is another model (RE-181 §6).Limits
Report:
reports/element-framing/RE-181-revit-2015-2018-element-records.md. Probe:examples/probe_re181_revit_2015_2018.rs. The 2019 to 2022 report and probe areRE-180-revit-2019-2022-element-records.mdandprobe_re180_revit_2019_2022.rs.Legal and contribution hygiene
The changes in this PR are based on byte observations of Revit files (CLEANROOM.md Accepted sources 1): Autodesk's public sample projects
rac_basic,rst_basicandrac_advancedof 2016 to 2019, as pinned inresearch/autodesk-sample-projects.tsv; Autodesk'srac_basic_sample_family-2016.rfaas the phi-ag/rvt corpus holds it; three Autodesk Revit 2015 templates; and one local Revit 2014 project. I have not used Autodesk SDK source, ODA SDK source, leaked internal documentation, NDA material, or decompiled internal Revit implementation code beyond public symbol exports, and I have not copied or translated code from revit-ifc. I agree this work is licensable under Apache-2.0. The 2015 files are Autodesk's own templates shipped with Revit 2015 (build 20140117_1515), unmodified; the 2014 project is a local file whose origin cannot be documented. (puzzbobb, comment)Maintainer notes (landing)
Revit 2014 is left out, as the contributor asked (fail closed). No documented 2014 file backs it. So
REVIT_32BIT_RELEASESis 2015 to 2023, the 2014 row ofschema_tagsis removed, and every release list and range this PR adds starts at 2015.LEVEL_PLACEMENT_KIND_2014is namedLEVEL_PLACEMENT_KIND_2015. The RE-181 report keeps the 2014 measurements, marked as not evidence.Renumbered RE-178 to RE-180 and RE-179 to RE-181. RE-172 to RE-178 are helenkwok's PRs and RE-179 is feat(elements): read Revit 2027 element records against their 2026 copies (RE-179) #740's. That covers the reports, the probes, code comments, the support-matrix entries (
element-records-revit-2015-2018), the CHANGELOG, README and supported profile. Only lines this PR adds were changed.Rebased onto
mainafter feat(elements): read Revit 2027 element records against their 2026 copies (RE-179) #740, as one signed commit with puzzbobb as author; the merge commits are dropped. The 2027 lines this branch carried from feat(elements): read Revit 2027 element records against their 2026 copies (RE-179) #740 come from feat(elements): read Revit 2027 element records against their 2026 copies (RE-179) #740 itself, as the review said they would. Apart from the 2014 removal and the renumbering, each source file's added and removed lines are the PR's own, checked line by line against the branch's changes. The one exception is a list rustfmt rewrapped.Reproduced on the runners. Measure run 39161812159 (
-f samples=true, basemain) read Autodesk's 49 sample projects and CI's 6 reference models.rac_basic2016 to 2022 export 464 building elements andrst_basic454, wheremainexports none; each equals its 2023 copy, class for class.rac_advanced2021 and 2022 export 5,657, as 2023 does. 2016 to 2020 export 5,606: 36IfcMember, 5IfcSlaband the 10IfcStairFlightfewer, which RE-180 §6 explains as an earlier edit of the model.rac_advancedchanges: 2 more entities and 2 more property values, from the one-unit name rule, which 2023 shares.Two claims corrected to that measurement. The CHANGELOG said "every 2023 to 2027 export is byte-identical" and gave every 2019 to 2022 export 2023's building elements. Both now say what Measure shows, and RE-180 §8 records the 2023
rac_advancedchange.Every table reproduced on the runners with Measure's paired probe (ci(measure): run a two-file probe on each sample and the same project saved by another release (#740) (#742) #799): runs 39164970308 for 2019 to 2022, 39164971874 for 2016 to 2018, and 39173916922 for 2015 and the 2019 MEP and
rst_advancedprojects.rst_basicandrac_advancedrow is exactly the contributor's.rac_basicthe runners read one element fewer in both files and 79 more agreeing fields, at this commit and at both earlier heads (057f27a, 97cf970). Those rows of RE-180 §6 and RE-181 §6, and the table above, are the runners'.