Skip to content

feat(elements): read Revit 2015 to 2022 element records in the 32-bit layout (RE-180, RE-181) - #742

Merged
DrunkOnJava merged 1 commit into
DrunkOnJava:mainfrom
puzzbobb:feat-2014-2023
Oct 18, 2026
Merged

DrunkOnJava merged 1 commit into
DrunkOnJava:mainfrom
puzzbobb:feat-2014-2023

Conversation

@puzzbobb

@puzzbobb puzzbobb commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

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_RELEASES is now 2015 to 2023, and schema_tags gains rows for 2015 to 2018. Each release's tags were read from its own schema. (2014 is left out; see the maintainer notes.)
  • Level placement kind. A 2015 to 2018 Level record holds 0xffffef6f where 2019 and later hold the instance kind 0xffffef7f. Without this, no Level became a storey and no element was bound to its Level. LEVEL_PLACEMENT_KIND_2015 now reads as the instance kind.
  • Wall flip. As on 2019 and 2020, 2015 to 2018 write no word between a wall's location line and its flip.
  • Material shading. The frame holds two pattern slots where 2019 holds four, because 2019 split each fill pattern into foreground and background. Without this, no material had a colour.
  • Element-data names (2015 to 2018 only). A type's name is now looked for only in the type's own data, up to the next element's header, and one-unit entries are skipped. This fixes two cases: 9 walls of the 2018 rac_basic whose 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.

model 2016 2017 2018
rac_basic, fields agreeing / differing 6,613 / 63 6,669 / 7 6,676 / 0
rst_basic 6,411 / 224 6,623 / 73 6,623 / 73
rac_advanced 62,795 / 12 62,806 / 1 62,807 / 0
  • Every ElementId that a release shares with its 2019 copy has the same class in both.
  • Every remaining field difference comes from the files' own bytes: element boxes, reference lists, 2016's shading colours, and 2016 rst_basic's renamed families (RE-181 §6).
  • The IFC exports have the 2019 copies' building elements, class for class. The 2018 rac_basic and the 2017 and 2018 rac_advanced exports match the 2019 exports line for line, apart from GlobalIds.
  • 18 exports pass IfcOpenShell 0.9.0's schema validation with 0 issues: the 9 samples, the 2019 copies, three 2015 templates, the 2016 sample family and a 2014 project (which is not evidence and is no longer read).
  • The IFC export is byte-identical to feat-2019-2022 #741's on 91 local files of 2008 to 2027. Only the 2016 sample family changes, because it is now read from its records.
  • cargo fmt --check and cargo clippy --all-targets -D warnings are clean.
  • cargo test --test integration with the local corpus: 261 passed and 1 failed. The failure is synthetic_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

  • Autodesk publishes no 2014 sample project, and Revit 2014 is not read, since its one project's origin is not documented.
  • Revit 2013 and earlier are not covered.

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 are RE-180-revit-2019-2022-element-records.md and probe_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_basic and rac_advanced of 2016 to 2019, as pinned in research/autodesk-sample-projects.tsv; Autodesk's rac_basic_sample_family-2016.rfa as 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_RELEASES is 2015 to 2023, the 2014 row of schema_tags is removed, and every release list and range this PR adds starts at 2015. LEVEL_PLACEMENT_KIND_2014 is named LEVEL_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 main after 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, base main) read Autodesk's 49 sample projects and CI's 6 reference models.

    • rac_basic 2016 to 2022 export 464 building elements and rst_basic 454, where main exports none; each equals its 2023 copy, class for class.
    • rac_advanced 2021 and 2022 export 5,657, as 2023 does. 2016 to 2020 export 5,606: 36 IfcMember, 5 IfcSlab and the 10 IfcStairFlight fewer, which RE-180 §6 explains as an earlier edit of the model.
    • Every 2024 to 2027 output and every reference model is byte-identical. Of the 2023 samples, only rac_advanced changes: 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_advanced change.

  • 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_advanced projects.

    • Every marker count, every schema tag, and every rst_basic and rac_advanced row is exactly the contributor's.
    • On rac_basic the 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'.
    • The 2015 rows of RE-181 come from Autodesk's six 2015 sample projects, which corpus: pin Autodesk's six Revit 2015 sample projects and the 2019 MEP and rst_advanced ones for Measure (#742) #801 pinned, and no longer from templates only. The four 2019 counts in RE-180 §7 reproduce exactly.

@DrunkOnJava

Copy link
Copy Markdown
Owner

Thank you for this. CI on its original base passed everything except viewer dependency audit, which failed on a lockfile advisory that #747 fixed today. Same apology as on #740 for the wait.

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 (schema_tags) is the right shape: one table to audit, and fail closed outside it. The cross-version oracle and the experimental entries are stated honestly. A few things before it can land:

  1. The contributor declaration, as on feat(elements): read Revit 2027 element records against their 2026 copies (RE-179) #740: the "Legal and contribution hygiene" section, or the one-sentence equivalent from CLEANROOM.md.
  2. Where the 2014 project and the three 2015 templates come from. The 2014 row of schema_tags and the 2015 one rest only on those files, and Autodesk publishes no 2014 or 2015 sample project. Could you give their source and licence? If the templates are Autodesk's own (shipped with Revit 2015 or downloadable), saying so is enough. As on Element records beyond 2024/2025: derive the marker from the schema and measure the older envelope (RE-80 follow-up) #421, a file whose origin isn't recorded can't be the evidence for a release, so if the 2014 project can't be named, I'll keep 2014 out of REVIT_32BIT_RELEASES (fail closed) until a documented file exists, and land 2015 to 2022.
  3. Overlap with feat(elements): read Revit 2027 element records against their 2026 copies (RE-179) #740. This branch carries part of feat(elements): read Revit 2027 element records against their 2026 copies (RE-179) #740's 2027 work: the layer frame tag, the join-count offset, the material and elevation constants, and the element-records-revit-2027 support-matrix entry. I'll land feat(elements): read Revit 2027 element records against their 2026 copies (RE-179) #740 first and rebase this onto it, so the 2027 lines come from one PR.
  4. Renumbering and subject, which I'll do on your branch: RE-178 becomes RE-180 and RE-179 becomes RE-181 (helenkwok's PRs hold RE-172 to RE-178, and feat(elements): read Revit 2027 element records against their 2026 copies (RE-179) #740 becomes RE-179), across file names, probes, comments, docs and the support matrix. The squash subject becomes feat(elements): read Revit 2014 to 2022 element records in the 32-bit layout (RE-180, RE-181) (#742).

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.

@DrunkOnJava

Copy link
Copy Markdown
Owner

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 schema_tags rest on. Once both are in, I'll do the renumbering (RE-180, RE-181) and the re-signing on your branch, and it lands after #740.

@puzzbobb

Copy link
Copy Markdown
Contributor Author

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_basic and rac_advanced of 2016 to 2019, as pinned in research/autodesk-sample-projects.tsv; Autodesk's rac_basic_sample_family-2016.rfa as 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.

Source of the 2014 and 2015 files

  • 2015: DefaultMetric.rte, Structural Analysis-DefaultMetric.rte and Metric Casework.rft are Autodesk's own templates shipped with Revit 2015 (build 20140117_1515), unmodified.
  • 2014: the project is a local file I can't distribute or document the origin of, so please keep 2014 out of REVIT_32BIT_RELEASES (fail closed) as you suggested, and land 2015 to 2022.

@DrunkOnJava

Copy link
Copy Markdown
Owner

Thank you, that's everything I needed. I'll keep 2014 out of REVIT_32BIT_RELEASES as you ask, so it fails closed, and land 2015 to 2022 with the three Revit 2015 templates as the source. Since this overlaps #740, I'll renumber it to RE-180 and RE-181 and rebase it once #740 lands, then run Measure on the samples before merging.

@DrunkOnJava DrunkOnJava changed the title (Feat) 2014 to 2023 element records feat(elements): read Revit 2015 to 2022 element records in the 32-bit layout (RE-180, RE-181) Oct 18, 2026
@DrunkOnJava

DrunkOnJava commented Oct 18, 2026 •

Copy link
Copy Markdown
Owner

Landing steps done on your branch: 2014 is left out everywhere this PR gated it, so it fails closed (REVIT_32BIT_RELEASES is 2015 to 2023, and the 2014 schema_tags row is gone), renumbered to RE-180 and RE-181, and rebased onto main after #740 as one signed commit with you as author. The 2027 lines now come from #740 itself. Your report keeps the 2014 measurements, marked as not evidence. CI and a Measure run on Autodesk's samples (39161812159) are going; it lands once they agree. Your latest merge of main brought only main's own changes, so the rebased commit replaces it.

@DrunkOnJava

Copy link
Copy Markdown
Owner

Measure on Autodesk's samples (run 39161812159) reproduces your tables: rac_basic and rst_basic 2016 to 2022 now export exactly their 2023 copies' building elements, and rac_advanced 2021 and 2022 do too. Two claims needed adjusting, which I did on your branch. First, the 2023 rac_advanced sample changes by 2 entities and 2 property values: lone_non_ascii applies to name_entries_2023 on 2023 as well, so "every 2023 to 2027 export is byte-identical" now reads "2024 to 2027", with the 2023 change named. Second, the 2019 and 2020 rac_advanced export 5,606 elements against 2023's 5,657, as your RE-180 §6 explains (an earlier edit of the model). The CHANGELOG had given them 2023's elements class for class, so it now scopes that to the files where it holds. If you know which 2023 name entry the rule now drops, that would be good to add later.

DrunkOnJava added a commit that referenced this pull request Oct 18, 2026
… 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.
@DrunkOnJava

Copy link
Copy Markdown
Owner

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:

  • 39164970308: 2019 to 2022 against 2023, probe_re180_revit_2019_2022, 12 pairs.
  • 39164971874: 2016 to 2018 against 2019, probe_re181_revit_2015_2018, 9 pairs.

Most of it reproduces exactly:

  • The marker counts of both reports' section 2.
  • The schema tags for 2016 to 2023, where the probe prints "table: agree" on every file.
  • Every rst_basic and rac_advanced row of both comparison tables.

rac_basic does not. On every release the runners read one element fewer in both files and 79 more agreeing fields; the differing fields are the same:

file yours: elements, same, agree, differ runners
2016 / 2019 622 / 622, 622, 6,534, 63 621 / 621, 621, 6,613, 63
2017 / 2019 622 / 622, 622, 6,590, 7 621 / 621, 621, 6,669, 7
2018 / 2019 622 / 622, 622, 6,597, 0 621 / 621, 621, 6,676, 0
2019 / 2023 622 / 639, 622, 6,569, 43 621 / 638, 621, 6,648, 43
2020 / 2023 637 / 639, 637, 6,629, 43 636 / 638, 636, 6,708, 43
2021 / 2023 637 / 639, 637, 6,629, 43 636 / 638, 636, 6,708, 43
2022 / 2023 638 / 639, 637, 6,629, 43 637 / 638, 636, 6,708, 43

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 git status and commit would tell us where the extra element came from.

I have corrected the rac_basic rows in RE-180 §6 and RE-181 §6 to the runner counts. Each report now says which run measured its table, and both Reproduce sections gain the Measure command. These changes are amended into the landing commit, now 6bcf062, still authored by you and rebased on main after #799. This lands once CI is green.

DrunkOnJava added a commit that referenced this pull request Oct 18, 2026
…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.
@DrunkOnJava

Copy link
Copy Markdown
Owner

2015 is now checked on the runners too. Autodesk's download host has all six Revit 2015 sample projects, under 2015RVT_RTM/Docs/ rather than Docs/InProd/, which is why the pin list had started at 2016. #801 pinned them, together with the 2019 rme_basic, rme_advanced and rst_advanced projects your RE-180 §7 read from local copies.

Run 39173916922 read them with this branch's probe, each against its 2019 copy:

  • Every 2015 file's schema tags equal the 2015 column you read from the templates.
  • Every 2015 file frames its records as 2019 does: an id 52 bytes before every marker but 4 to 6.
  • On five 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 id with its 2019 copy; it is another model.
  • Your 2019 counts in RE-180 §7 reproduce exactly: 5,773, 6,904, 6,860 and 1,025.
  • All nine exports pass IfcOpenShell's validation with no finding.

The differing fields are mostly RE-82's type-material scan (5,174, as in your RE-180 §6 list for rac_advanced), renamed rst_advanced families (68), and curtain-wall member boxes on rac_basic (111). RE-181 §6 counts them without explaining them.

I have added this to RE-181:

  • a 2015 section in §6 and the 2015 rows in §2;
  • the exports in §7;
  • the Reproduce command, now sample_years="2015 2019".

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.

@DrunkOnJava
DrunkOnJava merged commit 876bb3f into DrunkOnJava:main Oct 18, 2026
26 checks passed
@DrunkOnJava

Copy link
Copy Markdown
Owner

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.

DrunkOnJava added a commit that referenced this pull request Oct 19, 2026
…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 -->
DrunkOnJava added a commit that referenced this pull request Oct 19, 2026
## 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 -->
@DrunkOnJava

Copy link
Copy Markdown
Owner

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.

@puzzbobb
puzzbobb deleted the feat-2014-2023 branch October 27, 2026 18:04
DrunkOnJava added a commit that referenced this pull request Nov 13, 2026
…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/`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants