Repository navigation
corpus: pin Autodesk's six Revit 2015 sample projects and the 2019 MEP and rst_advanced ones for Measure (#742) - #801
Merged
Conversation
…P and rst_advanced ones for Measure (#742) Autodesk keeps Revit 2015's sample projects on its download host under 2015RVT_RTM/Docs/, not Docs/InProd/ where the 2016 to 2027 ones are, which is why the pin list started at 2016. All six were saved by Revit 2015 (builds 20140117_1515 and 20140120_2215). The 2019 rme_basic, rme_advanced and rst_advanced projects (Format 2019, build 20180123_1515) give each 2015 project a 2019 copy, so #742's 2015 to 2018 reader and RE-180's 2019 reads of those three run on GitHub's runners instead of on one machine.
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Pins Autodesk's six Revit 2015 sample projects for Measure, plus the 2019
rme_basic,rme_advancedandrst_advancedprojects, 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_advancedexports came from local copies too. Autodesk's download host has all of them. Revit 2015's samples are under2015RVT_RTM/Docs/, notDocs/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:rac_basic,rst_basicandrac_advanced, in year order;rme_basic,rme_advancedandrst_advancedand 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:
.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, dispatched from this branch:
-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:
schema_tags, which had been read from Autodesk's 2015 templates.rac_advanced5,773 of 5,773,rme_basic6,899,rme_advanced6,842,rst_advanced953 andrac_basic621. The 2015rst_basicshares no ElementId with its 2019 copy; it is another model.rac_advanced,rme_basic,rme_advancedandrst_advancedread 5,773, 6,904, 6,860 and 1,025 production elements, the counts RE-180 §7 gives.The per-field details go into RE-181 on feat(elements): read Revit 2015 to 2022 element records in the 32-bit layout (RE-180, RE-181) #742.
yaml.safe_loadparses the workflow, and no (year, file) pair is pinned twice.Audit-honesty checklist
Legal and contribution hygiene
Breaking changes
None. Measure's full samples run reads nine more files.