Skip to content

feat(elements): read Revit 2027 element records against their 2026 copies (RE-179) - #740

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

DrunkOnJava merged 1 commit into
DrunkOnJava:mainfrom
puzzbobb:feat-2027

Conversation

@puzzbobb

@puzzbobb puzzbobb commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

Part of #421.

Before. A Revit 2027 project opens and its schema reads, but every partition reader stops at 2026. rvt-elements on Autodesk's 2027 rac_basic lists 933 Material name candidates and nothing else, and rvt-ifc writes an empty spatial scaffold.

The constants. As RE-124 found for 2023 to 2026, each per-release constant is a class tag in the file's own schema. The 2027 values are the same on all seven of Autodesk's 2027 sample files:

constant class 2026 2027
record marker Outline, ElementParents 0x0161, 0x05f1 0x0164, 0x0610
Level elevations Plane 0x0265 0x027a
element data CellList 0x02fd 0x0310
layers VerticalRegionsStructure 0x1165 0x11ab
materials Material, PatternHelper, PhysicalParamSet 0x0a9c, 0x0164, 0x0cac 0x0acc, 0x0168, 0x0ce0

Three layouts carry over, each checked on the bytes:

  • Layer records stay at 41 bytes; the layer lists of 2026 and 2027 rac_basic are byte for byte the same.
  • Wall join lists keep the count offset of 16.
  • Mullion type materials stay at +135: all 353 types of 2027 rac_advanced hold their 2026 material there. B66 recorded "none on 2027", but that survey ran before 2027 material names could be read.

A 2027 format change. Revit 2027 writes most element frames in the second prologue (RE-30), with no ElementId at +0x00: 938 of 1,265 on rac_basic, where the 2026 copy writes none. Type symbols are among them. Instances already take their id from the enclosing chain record (RE-35). From 2027, symbol frames do too (SECOND_PROLOGUE_SYMBOLS_FROM); without that, columns lose their type section (RE-26). Of 17,621 such frames, 17,619 take the id the 2026 copy's frame of the same category, kind and box carries. Earlier releases are left as they are: on Snowdon Facades (2025), symbols would give seven columns a type section that no export here checks.

A fix on the way. With 2027 admitted, RE-130's pipe type name scan matched an element's reference lists on rme_basic and named 33 pipes 였縿괜쭃. All six real type names on RE1 Plumbing and Mechanical have a u32 0 before their length, and the false match does not, so the scan now requires it (MEP_CURVE_TYPE_NAME_GUARD).

Measured. There is no Revit 2027 IFC export to measure against. The oracle is the same Autodesk model saved by Revit 2026, which RE-124 measured against Revit's export. examples/probe_re179_revit_2027.rs compares production elements by ElementId:

model elements same id and class fields agree differ
rac_basic 638 638 9,624 45
rac_advanced 5,841 5,841 104,254 129
rst_basic 541 541 8,064 0
rme_basic 6,921 6,921 120,706 10
rme_advanced 6,877 6,877 119,808 0

Every difference is either in the 2027 bytes or in a reader with no per-release constant (details in RE-179 §5):

  • 79 corner mullions name both curtain walls of their corner on 2027, so they stay standalone (RE-46 needs exactly one).
  • RE-82's type-material scan gives 34 elements a different material. 2027 orders the partition's objects differently, and the scan's window runs to the next declared block.
  • m_levelId differs on 21 mullions aggregated into their curtain walls. It places nothing: all 450 exported elements land on the same storey.
  • m_original_symbol differs on 10 instances. The 2027 GElement objects name a different symbol whose box is identical.
  • 3 boxes differ by 1.7e-6 ft, from f32 rounding in the 2027 file.

The 2027 rac_basic export has the 2026 export's entities class for class (47 walls, 16 doors, 17 windows, 9 curtain walls, 14 spaces, 6 storeys…), with the same storeys and the same GlobalIds apart from rvt-rs's own opening ids. All six 2027 exports pass IfcOpenShell 0.9.0's schema validation with no issue.

Nothing else moves. Every 2023 to 2026 IFC export is byte-identical to main's, owner-history timestamp aside. That covers 55 local files: Autodesk's samples, Core Interior, Einhoven, the seven 2025 Snowdon Towers models, Golden Nugget, the Japanese samples and RE1.

Not read on 2027, as on 2026: roof slopes, stair dimensions, beam axes, IFC export overrides, room solids, the opening index.

Docs. README row, supported profile, support-matrix entry element-records-revit-2027 (experimental, and it says there is no 2027 export), CHANGELOG, the RE-179 report and probe.

Checks. cargo fmt, cargo clippy --all-targets -D warnings, and the support-matrix contract test pass locally. The probe compares two files (a 2026 copy and its 2027 file), so it runs by hand: Measure's per-file call passes --records, which it would read as the second path.

A Revit 2027 export of any model would turn this from "the same as 2026" into a measurement against Revit. If someone with Revit 2027 can export one of Autodesk's 2027 samples to IFC4 with default settings, that settles it.

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 of Revit 2026 and 2027 (rac_basic, rac_advanced, rst_basic, rme_basic, rme_advanced, plus the 2027 rst_advanced and rac_basic_sample_family), as pinned in research/autodesk-sample-projects.tsv and fetched by tools/fetch-autodesk-samples.sh; and, for the pipe and duct type-name guard, the RE1 Plumbing and Mechanical models already in the project's corpus. The regression check (byte-identical 2023 to 2026 exports) used files already in the project's corpus. 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. (puzzbobb, comment)

Maintainer notes (landing)

  • Renumbered RE-177 to RE-179, because RE-177 is feat(ifc): Category, family/type and Phase Created in Revit's Other, Identity Data and Phasing sets #755's: the report, the probe (probe_re179_revit_2027.rs), code comments, the support-matrix evidence, the CHANGELOG, README and supported profile. Only lines this PR adds were changed.
  • Rebased onto main as one signed commit with puzzbobb as author; the merge commit is dropped. The source, support-matrix and probe changes are the PR's own, line for line: each file's added and removed lines equal the original commit's, apart from the renumbering. The CHANGELOG entries moved into today's [Unreleased], since 0.5.0 and 0.5.1 shipped meanwhile. README's 2026 row and the supported profile keep main's "since 0.5.0" wording beside the new 2027 text.
  • Reproduced on the runners. Measure run 39159699151 (-f samples=true, base main) read the 49 Autodesk samples and CI's 6 reference models:
    • the five 2027 samples export as many building elements as their 2026 copies: rac_advanced 5,657, rac_basic 464, rme_advanced 6,710, rme_basic 6,754 and rst_basic 454, where main exports none;
    • every other output, 2016 to 2026 and the reference models, is byte-identical to main's.

@DrunkOnJava

Copy link
Copy Markdown
Owner

Thank you for this, and sorry for the two-week wait. GitHub holds a first-time contributor's CI until a maintainer approves the run, and nobody was watching the queue. I approved it this morning. On the base you branched from, every job passed except viewer dependency audit. That job failed on a source-map-js advisory in main's lockfile, which #747 fixed today, so it isn't caused by this PR.

I read the whole diff. The per-release constants follow RE-124's rule (each is the file's own schema tag), the layouts that carry over are each checked on bytes, and the support-matrix entry is honest about the oracle: experimental, no Revit 2027 export, measured against the 2026 copies. That's the right status. The MEP_CURVE_TYPE_NAME_GUARD applies to every release, so I checked that RE1's pipe and duct type names still come out on CI's corpus. They do.

What I need from you: the contributor declaration from CLEANROOM.md. This PR adds format findings, and the description doesn't carry it yet. Please add the template's "Legal and contribution hygiene" section with its boxes ticked, or the one-sentence equivalent: which sources the findings come from, and that no Autodesk or ODA SDK source, leaked documentation, NDA material or decompiled internals were used. It's the one thing I can't supply for you, and it becomes part of the squash commit.

What I'll do on your branch (you left maintainer edits on, thank you):

  • Renumbering. RE-172 to RE-178 belong to helenkwok's PRs, which land first, so this report becomes RE-179: file names, the probe (probe_re179_revit_2027.rs), code comments, the support-matrix entry, CHANGELOG and README.
  • Conflicts. Rebase onto main and resolve the CHANGELOG and README conflicts left by today's merges.
  • Measure. Run the Measure workflow with Autodesk's samples and your probe (-f samples=true -f probe=...), so your table is reproduced on the runners before this lands.
  • Commit subject. "Add files via upload" becomes feat(elements): read Revit 2027 element records against their 2026 copies (RE-179) (#740).

It lands right after the declaration is in and the Measure run agrees with your table. #742 follows it, since the two overlap.

@DrunkOnJava

Copy link
Copy Markdown
Owner

Thanks for bringing this up to date with main. CI now passes on it. What's left is the one item from my review: the contributor declaration from CLEANROOM.md, either the template's "Legal and contribution hygiene" section ticked or its one-sentence equivalent. Once it's in, I'll renumber to RE-179 on your branch as described, re-sign the commits with you as author, and land it.

@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 of Revit 2026 and 2027 (rac_basic, rac_advanced, rst_basic, rme_basic, rme_advanced, plus the 2027 rst_advanced and rac_basic_sample_family), as pinned in research/autodesk-sample-projects.tsv and fetched by tools/fetch-autodesk-samples.sh; and, for the pipe and duct type-name guard, the RE1 Plumbing and Mechanical models already in the project's corpus. The regression check (byte-identical 2023 to 2026 exports) used files already in the project's corpus. 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.

…pies (RE-179) (DrunkOnJava#740)

The partition readers take their Revit 2027 constants from the file's schema (RE-124's rule): the record marker, Level elevations, element data, layers and materials; layer records, wall join lists and mullion type materials keep their 2026 layouts. From 2027 a type symbol frame takes its enclosing record's id, as an instance already does (RE-35). A pipe or duct type name needs the u32 0 before its length. Renumbered from RE-177 on landing (RE-177 is DrunkOnJava#755's).
@DrunkOnJava DrunkOnJava changed the title 2027 Element Records feat(elements): read Revit 2027 element records against their 2026 copies (RE-179) Oct 18, 2026
@DrunkOnJava

Copy link
Copy Markdown
Owner

Thank you, that's the declaration in full; I've added it to the description, so it goes into the squash commit. I've done the landing steps on your branch: renumbered to RE-179, rebased onto main as one signed commit with you as author (the merge commit is dropped, and every source, support-matrix and probe line is yours), and set the subject. CI and a Measure run with Autodesk's samples and your probe (run 39159699151) are going now. It lands once they agree with your table.

@DrunkOnJava
DrunkOnJava merged commit 70984ce into DrunkOnJava:main Oct 18, 2026
26 checks passed
@DrunkOnJava

Copy link
Copy Markdown
Owner

Merged as 70984ce, with you as the commit's author. Measure reproduced it on the runners (run 39159699151): the five 2027 samples export as many building elements as their 2026 copies, where main exported none, and every 2016 to 2026 output and reference model is byte-identical. One note for the probe: it compares two files, so it runs by hand; Measure's per-file call passes --records, which it reads as a second path. Thank you for this, and for waiting through the queue. #742 is next.

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 its copy saved by another release (#799), so I checked your RE-179 comparison on GitHub's runners. At your commit 4038188, run 39166281214 gives your table exactly: 20,818 of 20,818 ElementIds with the same class, and 362,456 of 362,640 fields agreeing, file by file. On main (run 39164968387) later changes read more fields, so 363,072 of 363,256 agree, with the same 184 differing. #802 adds both runs to the report and puts main's count in the CHANGELOG and the support matrix.

DrunkOnJava pushed a commit that referenced this pull request Oct 18, 2026
… layout (RE-180, RE-181) (#742)

## 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 #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 #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](#742 (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 #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 #740, as one signed commit with puzzbobb as author; the merge commits are dropped. The 2027 lines this branch carried from #740 come from #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](https://github.com/DrunkOnJava/rvt-rs/actions/runs/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** (#799): runs [39164970308](https://github.com/DrunkOnJava/rvt-rs/actions/runs/39164970308) for 2019 to 2022, [39164971874](https://github.com/DrunkOnJava/rvt-rs/actions/runs/39164971874) for 2016 to 2018, and [39173916922](https://github.com/DrunkOnJava/rvt-rs/actions/runs/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 #801 pinned, and no longer from templates only. The four 2019 counts in RE-180 §7 reproduce exactly.
DrunkOnJava added a commit that referenced this pull request Oct 18, 2026
…t, on its commit and on main (#740)

Measure could not run probe_re179_revit_2027, which takes two files, so the
2027 field counts in the CHANGELOG and the support matrix were the
contributor's. With #799 the runners give RE-179's table exactly at the
commit it was measured on (run 39166281214) and, on main at 70984ce, 616
more agreeing fields and the same 184 differing (run 39164968387): 363,072
of 363,256. The ElementId and class counts (20,818 of 20,818) are the same
on both. The report's Reproduce section named a Measure call that breaks
the probe; it now gives the paired one.
DrunkOnJava added a commit that referenced this pull request Oct 18, 2026
…t, on its commit and on main (#740) (#802)

## Summary

Records RE-179's 2027-against-2026 comparison as Measure's paired probe (#799) gives it on GitHub's runners. The CHANGELOG and the support matrix now give the field counts that `main` produces.

## Motivation

#740's README, CHANGELOG and support-matrix claims came from the contributor's machine. Measure's samples loop calls a probe with one file and `--records`, which `probe_re179_revit_2027` reads as a second path, so Measure could not check those claims. With #799 it can:

- At the commit #740 measured (4038188, run [39166281214](https://github.com/DrunkOnJava/rvt-rs/actions/runs/39166281214)), the runners give RE-179's table exactly. That is 20,818 of 20,818 ElementIds with the same class, and 362,456 of 362,640 fields agreeing.
- On `main` at 70984ce (run [39164968387](https://github.com/DrunkOnJava/rvt-rs/actions/runs/39164968387)), the ElementIds and classes are the same. Later changes read more fields, so 363,072 of 363,256 agree: 616 more agreeing, and the same 184 differing.

| model | agreeing at 4038188 | agreeing on `main` | differing (both) |
|---|---:|---:|---:|
| `rac_basic` | 9,624 | 9,646 | 45 |
| `rac_advanced` | 104,254 | 104,420 | 129 |
| `rst_basic` | 8,064 | 8,064 | 0 |
| `rme_basic` | 120,706 | 120,920 | 10 |
| `rme_advanced` | 119,808 | 120,022 | 0 |

## Changes

- `reports/element-framing/RE-179-revit-2027-element-records.md`:
  - The dated table is kept, with both runs and `main`'s counts below it.
  - The Reproduce section named a Measure call that breaks the probe. It now gives the paired call.
- `CHANGELOG.md`: the #740 entry gives `main`'s field count.
- `docs/support-matrix.json`: `element-records-revit-2027` gives `main`'s field count.

The README's 2027 row cites only the 20,818 ElementIds, which both runs reproduce, so it is unchanged.

## Testing

- Docs only. `json.load` parses `docs/support-matrix.json`, and `tests/support_matrix.rs` runs in CI.
- The numbers come from the two runs above. Each run's artifact holds each 2027 sample's `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

## 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 fixtures

## Breaking changes

None.
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 2027 projects export their elements, as experimental, and the release notes credit you. Thank you.

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