Repository navigation
feat(elements): open Revit 2008 to 2013 files and read 2011 to 2014 element records (RE-259) - #1076
Conversation
|
Thanks for #1076 and #1077, the GUID-less schema grammar and the build-year rule are careful work. Review of both (#1077 is stacked on this one): Scope. rvt-rs 1.0 covers Revit 2015 to 2027 (docs/release-1.0-criteria.md). Pre-2015 support can land as an experimental track, but every surface that widens the range has to say it is outside that commitment: the supported-profile line that becomes "releases other than 2008 to 2027", the README's new rows and "Not yet" line, the error "Revit {version} is outside the 2008 to 2027 releases rvt-rs reads", and the two new support-matrix rows. Could each say "experimental, outside the 1.0 range (2015 to 2027)"? Evidence. Both PRs rest on twelve local files of unstated origin that CI cannot fetch. On #421 (2026-10-01) we said files whose origin is unrecorded cannot back a claim here, and the same holds for these. Could you say, for each file, its release, where it comes from, and whether it is publicly downloadable? A public pre-2015 project with Revit's own IFC export of it would let CI measure this; Autodesk's download host has none before 2015. Until then the support-matrix rows should say the evidence is local and closed source (they mostly do) and nothing should read as measured. Regression surface on supported releases. Interaction with #1081. |
|
Measure run 40942969388 (this head against main; the reference models, the BIM4LCA office, puzzbobb's R2025 models, every Autodesk sample 2015 to 2027 and the 12 family-corpus files): all 89 IFC exports byte-identical by |
No file written before Revit 2014 opened. BasicFileInfo was read only for a year from 2014 on, so every 2008 to 2013 file failed with "no 4-digit Revit version found", and the schema grammar expected a u32 GUID count after each class's fields, which schemas written before 2014 do not have, so it stopped at the first class. - basic_file_info: release years start at 2008. A year is a run of exactly four digits, so a build date such as 20080321_1900 no longer reads as 2008. A file that states no year (Revit 2008 and 2009 write only "Revit Build: <build>") takes the build year plus one, which holds on every file that states both, 2010 to 2016. The Revit Build line is read as the build where no other build string is found. - formats::schema_classes reads with GUID lists first and, when that stops early, without them, keeping the reading that gets further. Every local 2008 to 2013 schema now reads to its end (2,239 to 3,519 classes); 2014 and later read as before. rvt-info output is byte-identical to main's on every local file of 2014 and later (173 files).
… layout (RE-259) Revit 2011 to 2014 frame their element records as 2015 to 2023 do: on eight local files every record marker has a declared u32 ElementId 52 bytes before it. They are now in REVIT_32BIT_RELEASES, with each release's tags of the five schema classes in schema_tags, and in the release lists that began at 2015 (Levels, wall lines, room solids, category materials, layer layout, the wall flip without a word). Two layouts differ on 2011 to 2013: - A material's shading frame holds two u32 ElementIds between the 0.5 and the pattern slots (shading_ids_32). Read without them, no material of the 2013 sample had a colour. - An ElementId and the value-block mark also open blocks starting 00 00 00 00 00 01 that hold no type's map. They now end the block before them and are not read; read, they gave 101 elements type materials their 2015 copies do not have. On a local copy of Autodesk's 2013 rac_advanced sample against its pinned 2015 copy, every shared ElementId keeps its class and 62,071 of 62,153 fields agree; the rest are in the files' own records. The capability row, rvt-inspect and the rvt-corpus doctor take 2011 on.
… records examples/probe_re259_revit_2011_2014.rs prints how far a file's schema reads, its 32-bit tags and the framing of its record markers, and compares two copies of one model by ElementId, as RE-181's probe does. The report records the measurements. The files before 2015 are closed source and measured locally only; none is committed or fetched.
…their elements (RE-259) README, status, compatibility, supported profile, the support matrix row element-records-revit-2011-2014, the changelog fragment and the reconnaissance addendum say what opens, what is read, what it was measured on, and that those files are closed source.
4383b44 to
80ab401
Compare
|
@puzzbobb, the maintainer has decided how this lands: as an experimental track outside the 1.0 range. 1.0 covers Revit 2015 to 2027, and the pre-2015 evidence is your twelve local files, which CI cannot repeat. I have rebased this branch onto Measure run 40970663071 is checking the rebased head against |
…marked outside 1.0 in the viewer's grid (RE-259) tests/support_matrix.rs holds the release table to every release whose element records rvt::capability reads; 2011 to 2014 now are. The viewer draws its first-screen grid from the table, so its legend says that releases before 2015 are outside the 1.0 range and measured only on the contributor's local files.
|
Measure run 40970663071 on the rebased head (80ab401) against main: all 89 exports byte-identical and every family's |
…mes and storeys (RE-260) (#1077) Summary Revit 2008 to 2010 projects now export their elements, and Revit 2008 to 2012 projects their storeys, as experimental (RE-260). Revit 2009 and 2010 frame their element records as 2011 does, and Revit 2008 frames them 4 bytes shorter. Two readers that 2011 and 2012 also need are added: material names before 2012, which nothing ends with PhysicalParamSet's tag, and Level elevations before 2013, which follow a framed Plane reference. Builds on #1076 (RE-259). Motivation #421 asks for the element records of every release. After #1076, Revit 2008 to 2010 files open but their records are not read. On 2011 none of a file's materials is named, and no 2008 to 2012 file has a storey: the Level records are read, but not their elevations, so the exports fall back to one storey. About the evidence. Every file before 2015 measured here is closed source. None may be published, attached or fetched by CI, so the measurements are local only. No 2008 to 2010 file here has a Revit export or a copy of its model saved by another release. What is shown is that the records read without a byte left over, that the elements they give hang together, and that the exports validate. That is why 2008 to 2010 are experimental and their support-matrix row says so. Changes src/partition_element_records_2023.rs: REVIT_32BIT_RELEASES is 2008 to 2023, schema_tags gains rows for 2008, 2009 and 2010, and envelope_shortfall gives 4 on 2008, whose envelope has 12 bytes between the category and the placement kind where later releases have 16. src/partition_level_records.rs: the 2008 envelope in the Level record finder (find_level_records_32, with find_level_records_2023 kept as it was). framed_plane_marker and FRAMED_PLANE_UNTIL: before 2013 a Level's elevation follows ff ff ff ff and the Plane tag, one reference slot (00 00 00 00 or ff ff ff ff and a tag) and 16 bytes, written twice 24 bytes apart. The Building Story setting (RE-118, measured from 2023) is not read before 2013. src/partition_materials.rs: name_before_properties, before 2012: the first u32-counted name in a material object that three equal f64s follow. The 2011 to 2013 shading and value-block layouts of RE-259 now cover 2008 to 2013, as measured. src/partition_type_materials.rs, src/partition_compound_structure.rs, src/partition_room_boundaries.rs, src/partition_names.rs, src/research.rs: release lists and doc comments from 2008. src/capability.rs, src/bin/rvt_inspect.rs, src/bin/rvt_corpus.rs: 2008 to 2010 map to the new support-matrix row, and the doctor and rvt-inspect count them as read. examples/probe_re260_revit_2008_2010.rs, reports/element-framing/RE-260-revit-2008-2010-element-records.md: the probe and report. Docs: README.md, docs/status.md, docs/compatibility.md, docs/supported-profile.md, docs/support-matrix.json (row element-records-revit-2008-2010), docs/rvt-moat-break-reconnaissance.md (addendum), changelog.d/added/revit-2008-2010.md. Testing Unit tests are banned in this repository: do not add them. Show the change working end to end on real files instead. [x] tools/check-local.sh passes (fmt, clippy, rustdoc, build, real-file / CLI / contract checks) tools/check-local.sh (required gates): "check-local: all requested gates passed"; cargo test --test integration 297 passed; cargo clippy --all-targets --all-features -- -D warnings clean. cargo +1.87 check --profile ci --all-targets (the MSRV job) passes. [x] Verified end to end on real Revit files: the command, the files (and their licence), and the measured result against Revit's own export are in the PR body, with the script or probe that reproduces it Files: twelve local files of Revit 2008 to 2012, closed source, measured locally only. There is no Revit export or same-model copy of any 2008 to 2010 file: the checks are each file's own consistency. cargo run --release --example probe_re260_revit_2008_2010 -- <files>: every record marker of the 2009 and 2010 files has its ElementId 52 bytes before it, and of the 2008 file 48, with 12 ff bytes between category and placement kind on all 118 records (16 on every later file). Materials: every material object of the 2008 to 2011 files is named (101, 125, 9, 1, and 68 / 47 / 44 / 137 on 2011; none of the 2011 ones was named before). Where the object's own MaterialElemGroupHelper frame names it too, the two agree, 43 of 43. Every 2008 and 2009 material has a colour. Levels: every 2008 to 2012 file now reads its two Levels: 0 and 10 ft (Revit's imperial template) on ten files, and 0 and 4 m on one 2012 project. 2013 and 2014 read theirs as before. Elements: a 2009 wall 19 ft long and 20 ft tall with 8 doors 3 by 7 ft on its line, in two rows on Levels 1 and 2, each voiding and filling the wall in the export; a 2008 causeway as one generic model 101.9 by 33.5 by 23.4 ft. The 2008, 2009 and 2012 exports pass IfcOpenShell 0.9.0 validation with no issue. [x] If this touches the IFC exporter: the witness verdicts replay (see CONTRIBUTING.md) or the changed observations are refreshed in this PR The exporter itself is not changed; only releases before 2013 reach new code. rvt-ifc on 132 distinct local files of 2008 to 2027, this branch against #1076's, timestamp lines set aside: the 122 exports of 2013 to 2027 are byte-identical, including Core Interior (2024) and every pinned 2015 and 2016 sample at hand; the 10 that change are the files of 2008 to 2012. [ ] If this is a performance change: reran tools/bench.sh and attached the before / after N/A: not a performance change. Audit-honesty checklist [x] README / docs reflect the current state after this PR — no claims of features that are not actually shipped in this PR README's table row for 2008 to 2010 says what is read and that no oracle backs it; status, compatibility and supported profile say the same. [x] A user-visible change has its entry as a fragment under changelog.d/<section>/ (see changelog.d/README.md), not in CHANGELOG.md changelog.d/added/revit-2008-2010.md; tools/release/changelog.py check passes. [x] If a limitation was resolved, the "Known limitations" / "What works today" section in the relevant docs is updated "Element records of 2010 and earlier are not read" is gone from docs/compatibility.md and the README's "Not yet". [x] If a new limitation was introduced, it is documented in the PR body and in-code Which four bytes a 2008 envelope leaves out is not shown (all ff on both releases); the Building Story setting is not read before 2013; 2008 to 2010 rest on their own files' consistency. Each is in the report's §6 and in the doc comments. [x] Commit messages describe WHAT changed and WHY, not "fix things" or "updates" [x] No emojis in code, docs, or commit messages [x] No private paths, personal email addresses, or internal jargon in committed files The pre-2015 files are named by release, build and role only, never by path, file name or content. [x] If this is a reverse-engineering finding: a reproducible probe under examples/ and a dated addendum to docs/rvt-moat-break-reconnaissance.md are included examples/probe_re260_revit_2008_2010.rs; addendum "RE-260 Revit 2008 to 2010 element records, 2008 to 2011 material names, 2008 to 2012 Levels (2026-10-28)". tools/ci/api-doc-ids.py and tools/ci/re-citations.py pass. Legal and contribution hygiene [x] I agree this work is licensable under Apache-2.0 (see CONTRIBUTING.md) [x] This PR contains no Autodesk proprietary source, decompiled internals, or NDA'd SDK content (see CLEANROOM.md) Every layout is read from file bytes. No pre-2015 file, and no part of one, is committed. [x] Any new test fixtures use synthetic values (testuser, 111111, FY-20XX, etc.) and contain no real-world PII N/A: no fixtures are added. Breaking changes None. find_level_records_2023 keeps its signature; the new readers are private or added. Screenshots or output samples probe_re260_revit_2008_2010 <Revit 2008 project> <Revit 2009 project> release 2008 framing markers 120 id-before-marker -48=118 none 2 category-to-kind {"12 x ff": 118} materials 101 named 101 e.g. ["Default", "Default Floor", "Default Roof", "Default Wall"] levels ["30 \"Level 1\" 0 ft", "9946 \"Level 2\" 10 ft"] elements {"GenericModel": 1, "Material": 101} release 2009 framing markers 171 id-before-marker -52=170 none 1 category-to-kind {"16 x ff": 170} materials 125 named 125 e.g. ["Default", "Default Floor", "Default Roof", "Default Wall"] levels ["30 \"Level 1\" 0 ft", "9946 \"Level 2\" 10 ft"] elements {"Door": 8, "Material": 125, "Wall": 1} Related issues Refs #421. Builds on #1076: until that merges, this PR also shows its four commits. --------- Co-authored-by: Griffin Long <[email protected]>
## Summary Release metadata for v0.11.0 (RELEASE.md steps 4 to 7). Merging this is not the release: the signed `v0.11.0` tag on its squash commit is. ## Motivation `main` holds user-facing fixes that installed users do not have yet, above all #1075 (a model over the reader's limits exported empty with exit status 0; the reporter can verify only from a release) and #421 (files that kept an older schema read as zero elements). It also holds the breaking removal of unused stable API (#1128), which makes this a minor release. ## Changes - Version 0.11.0 in `Cargo.toml`, `rvt-py/Cargo.toml` (and its `=0.11.0` pin), `rvt-wasm/Cargo.toml`, `tools/stream_evidence/Cargo.toml`, `viewer/package.json`, `CITATION.cff` (dated 2026-10-30), both lockfiles' workspace entries, and the `FILE_NAME` / `IFCAPPLICATION` lines of the two synthetic IFC fixtures, which the contract checks compare byte for byte since #1133. RELEASE.md's version list now names those fixtures. - `CHANGELOG.md`: `changelog.py assemble` moved the 33 fragments into `[0.11.0] — 2026-10-30`, with an introduction, credits (puzzbobb: #1074, #1076, #1077, #1081; n3ur0m4n: #1073) and "Upgrading from 0.10" (removed API, exit status 3 for a model over the limits, saved meshes on by default, properties no longer written, `Flagged` schema fields, the probes crate). - `README.md`: "Release 0.11.0 and main", and the reconnaissance probes point at `probes/examples/` (#1132). - `rvt-py/README.md` (packed into the wheel): what `write_ifc()` does when part of a file was over the limits. ## Testing CI is the gate. After this PR's CI, both Core Interior `rvt-rs.json` witness observations and their verdicts are refreshed from its `octetproof-core-interior` artifact (only `witness_version` and the verdict hashes may differ); the PR stays unarmed until then. ## Audit-honesty checklist - [x] The changelog section and README release section state only what the entries measured - [x] No emojis, private paths or internal jargon ## Legal and contribution hygiene - [x] Apache-2.0 - [x] No Autodesk proprietary content ## Breaking changes The release carries #1128's removal of unused public API; "Upgrading from 0.10" lists what a user changes.
…ersion, and rvt-inspect's message names the 2008 to 2027 range it checks (#1077) (#1266) ## Summary The viewer's file status warned "Unsupported Revit version" for any file before Revit 2015. Since RE-259 and RE-260 (#1076, #1077), rvt-rs reads 2008 to 2014 element records experimentally, and `rvt-inspect` already gates on 2008 to 2027. The viewer now uses the same range. `rvt-inspect`'s `unsupported_revit_version` message, and the three docs that quote it, now name that range as well. ## Motivation #1076 widened `rvt-inspect`'s `supported_revit_version` from 2015 to 2011, and #1077 to 2008, and both left the rest behind. A user opening a 2008 to 2014 project in the viewer was told rvt-rs does not read it, while the export beside the warning wrote its typed elements. ## Changes - `viewer/src/main.ts`: the version gate is `< 2008 || > 2027`, with its summary and comment to match. - `src/bin/rvt_inspect.rs`: the message says 2008 to 2027. The check itself was already right. - `docs/inspect.md`, `docs/user-guide.md` and `docs/diagnostic-semantics.md` quote the message, and now quote the new one. - `viewer/index.html`: the "IFC now" support line names 2008 to 2022 as experimental, and says doors and windows are drawn from Revit's saved meshes where those decode whole. - Both gate comments name 2026 among the experimental releases. - `changelog.d/fixed/unsupported-release-range-2008.md`. ## Testing - No check pins the message text: `tests/`, `viewer/tests/` and `docs/schemas/` were searched. - The viewer change is the same comparison `rvt-inspect` makes, `2008..=2027`. - CI runs the viewer's typecheck and build. - A review checked the range against `rvt-inspect`, the support matrix, RE-259 and RE-260. It also confirmed that no other viewer or `rvt-wasm` code applies a release range. Its notes are fixed in the second commit. ## Audit-honesty checklist - [x] Docs reflect the change - [x] Changelog fragment - [x] No emojis, private paths or internal jargon ## Legal and contribution hygiene - [x] Apache-2.0 - [x] No Autodesk proprietary source ## Breaking changes None. The `failure_mode.kind` value is unchanged; only its human-readable message names the right range.
## Summary Prepares v0.12.2, a patch release. It ships #1247's saved-mesh and door fixes, and the viewer's release-range fix (#1266), to the channels users install from. Measured against v0.12.1 on every reference model (Measure run 41589642386): - In the default export, the BIM4LCA office draws 269 doors from Revit's saved meshes instead of 48 (46 at permit). 265 are exact to 0.001 ft and all are within 0.01 ft. - Six R2025 models each draw one storefront door from its mesh, within 0.01 ft. - Core Interior, Einhoven, RE1 and the other R2025 models export the same IFC but for the version its header records. The changelog section below is the release notes. ## Changes - The version, 0.12.1 to 0.12.2, in every file `RELEASE.md` lists: `Cargo.toml`, `rvt-py/Cargo.toml` and its `=` pin, `rvt-wasm/Cargo.toml`, `tools/stream_evidence/Cargo.toml`, `viewer/package.json`, `CITATION.cff` (version and date), and both lockfiles. - `CHANGELOG.md`: the six fragments assembled into `[0.12.2] — 2026-11-03`, with an introduction measured against 0.12.1 and an "Upgrading from 0.12.1" list. - `README.md`: the release lines name v0.12.2, crates.io and PyPI keep each version's README. - From this PR's CI run 41594159223: the Core Interior witness observations and verdicts (replayed with CI's arguments: PASS, only `witness_version` and the verdict hashes moved) and the two synthetic IFC fixtures (only their version strings moved). ## The release notes 0.12.2 draws more doors from the meshes Revit saved for display in the default export, and more bodies with `--saved-meshes`. It also changes how a door's type decides whether the door is written as its opening alone. Both changes come from a user's comparison of 0.6.1 and 0.12.0 (#1247; thanks to hemanth1986). Not every case that comparison found is fixed: - the user's 341 beams lost their meshes on no file measured here, so their cause is open; - toilets, railings and wall-mounted fittings whose saved meshes RE-302, RE-303 and RE-305 measured stay boxes, because those meshes are not Revit's body; - the door change measures on no file here: its positive case is the user's own project, which has not been measured with it. Measured against 0.12.1 on every reference model (Measure run 41589642386, `main` before the version bump), in the default export, which draws doors and windows from their saved meshes: - the BIM4LCA office draws 269 doors from their saved meshes, against 48 as built and 46 at building permit, 265 of them exact to 0.001 ft against Revit's export and all within 0.01 ft; - six R2025 models (12 to 17) each draw one storefront door from its saved mesh, within 0.01 ft of Revit's body and at 1.0002 of its volume, where 0.12.1 drew a box; - Core Interior, Einhoven, the RE1 models and the other R2025 models export the same IFC as with 0.12.1, but for the version its header records; - 8 of the 13 held-out models change; they are counted, not scored. The office as built's IFC grows from 58.6 to 67.8 MB, its saved-mesh triangles from 66,872 to 257,108. With `--saved-meshes`, light fixtures and more bodies are drawn too, with each entry's own caveats (below). The viewer no longer calls a Revit 2008 to 2014 file an unsupported version (below). ### Upgrading from 0.12.1 - A door or window whose saved mesh now decodes whole is drawn from it instead of its box, in `rvt-ifc`, `rvt-gltf`, Python and the viewer. `--no-saved-meshes`, `saved_meshes=False` and `?savedMeshes=0` keep the boxes. - A door or window whose type's native map holds entries is written as an `IfcDoor` or `IfcWindow` filling its opening, where 0.12.1 may have written only its `IfcOpeningElement` (no measured file has such a door). - `rvt-inspect`'s `unsupported_revit_version` message names 2008 to 2027; the `failure_mode.kind` value does not change. - `rvt-capabilities --matrix` gives the Revit 2023 and 2024 project capabilities new names, in its text and JSON; their ids and statuses do not change. - The stable public API does not change. `rvt::research` (unstable) gains `native_type_materials::GeometryMap` and `geometry_maps`. ### Changed - **`rvt-capabilities --matrix` names the Revit 2023 and 2024 project capabilities for what they give.** `element-records-revit-2023` was "Revit 2023 elements from their partition element records: identity, category and box (RE-81)", though 2023 projects also get wall joins, beam cuts, room outlines, storeys, hosts, family and type names, materials and layer sets; `typed-project-elements`, the Revit 2024 row, was "Decode typed elements from real project files". The two names change, and their notes, which still said names, types, storeys and joins were not read on 2023, in the text and JSON of the built-in matrix; ids, statuses and evidence do not. `rvt-doc`'s note on older releases names the reconnaissance document by its new path, `docs/format-reconnaissance.md`. The README's support-by-release table is now rendered from the matrix, and CI fails when the two disagree (`tools/ci/readme-matrix.py`). ### Fixed - **Saved meshes read cylinder faces whose trim is not a rectangle in their UV box.** Such a face was rejected, and with it the whole element, which kept its box. The face is now meshed in strips across its angle, each no wider than the chord bound. On the BIM4LCA office 155 more doors are drawn from their saved meshes, as the default export draws doors: 151 exact to 0.001 ft against Revit's export, and all within 0.01 ft and 1% of its volume. Other files' new meshes with `--saved-meshes` are not all Revit's body: RE1 Plumbing draws 11 more pipe fittings, within 0.01 ft of Revit's surface but at 1.44 to 1.47 of its volume, and RE1 Architecture a toilet within 0.0126 ft. Autodesk's 2024 samples gain 163 and 124 (rme basic and advanced), 265 (Snowdon Towers plumbing), 34, 24 and 15 (Snowdon architectural and HVAC, rac basic), counted, not scored: no Revit export of them is scored (#1247, RE-304). - **Saved meshes read cylinders whose saved basis is left-handed.** Such a face was rejected, and with it the whole element, which kept its box. It is the same cylinder with its surface normal turned. On the BIM4LCA office 100 more bodies are drawn from their saved meshes (102 at permit), among them doors that the default export draws, 66 exact to 0.001 ft against Revit's export and 93 within 0.01 ft. Snowdon Towers' architectural sample gains 172, counted, not scored: no Revit export of it is scored (#1247, RE-301). - **With `--saved-meshes`, a light fixture's light source is left out of its body, instead of keeping the fixture's box.** The light source is saved as a filter of its own: a `GImposter` (a rendering asset with no surface) with the shape and lines that draw the light, none of it in Revit's export. On the BIM4LCA office 43 more bodies are drawn from their saved meshes, all exact to 0.001 ft against Revit's export, as are RE1 Electrical's 2. Snowdon Towers' electrical sample draws 1,324 bodies from saved meshes instead of 907 and keeps 139 boxes instead of 556; no Revit export of it is scored, so those are counted, not scored (#1247, RE-300). - **A door or window is no longer written as its opening alone when its type draws geometry in no material of its own.** RE-84 takes a type whose value block holds no geometry-material map as one that only cuts its host; the scan of that block missed a map whose values are all unset or name a material whose name it did not read. The type's native map now decides: it is empty on every door and window Revit exports as its opening alone (RE1's CasedOpening, and Snowdon Towers' 47 in Revit's export, which is local only), and those keep their openings. This fix alone changes no export of the reference models, the BIM4LCA office, the R2025 models or Autodesk's samples. The case it was found on, the 73 doors of #1247's project written as openings, is the user's own file and has not been measured with it (#1247, RE-299). - **The viewer no longer calls a Revit 2008 to 2014 file an unsupported version.** Its file status warned "Unsupported Revit version" for any file before Revit 2015, though rvt-rs reads 2008 to 2014 element records experimentally since RE-259 and RE-260 (#1076, #1077); it now warns only outside 2008 to 2027, as `rvt-inspect` decides. `rvt-inspect`'s `unsupported_revit_version` message, and the docs that quote it, name the same 2008 to 2027 range. ## Testing Measure run 41589642386 compares `main` at 30756e9 against v0.12.1, over every model, scorer and held-out pair. The scored changes are the doors above. The held-out models change too, and they are counted, not scored. `tools/release/changelog.py check` passes. A review read the notes against Measure 41589642386, the RE reports and #1247, and then re-read them after its blocking findings were fixed; nothing blocks. ## Audit-honesty checklist - [x] Release notes measured against the previous tag before they were written - [x] No emojis, private paths or internal jargon ## Breaking changes None. The stable public API does not change.
Summary
Revit 2008 to 2013 files now open, and Revit 2011 to 2014 projects export their elements, as experimental (RE-259). Before this, no file written before 2014 opened:
BasicFileInfowas read only for a year from 2014 on, and the schema grammar expected a GUID list that schemas written before 2014 do not have. Revit 2011 to 2014 frame their element records as 2015 to 2023 do, and are read in that layout with each release's own schema tags and two layout differences of 2011 to 2013.Motivation
#421 asks for the element records of every release. 2015 to 2027 are read (RE-179 to RE-181); every earlier file failed with
Malformed BasicFileInfo: no 4-digit Revit version foundinrvt-info,rvt-elementsandrvt-ifc, andrvt-ifcwrote a 1,635-byte scaffold.About the evidence. Every file before 2015 measured here is closed source. None may be published, attached or fetched by CI, so the measurements are local only and cannot be repeated on the runners. Autodesk's download host has no sample project before 2015. The one same-model pair is a local copy of Autodesk's 2013
rac_advanced_sample_project.rvtagainst the pinned 2015 copy (research/autodesk-sample-projects.tsv). That is why 2011 to 2014 are marked experimental, and why the report says which numbers rest on which file.Changes
src/basic_file_info.rs: release years from 2008. A year must be a standalone run of four digits, so a build date such as20080321_1900no longer reads as 2008. Revit 2008 and 2009 state no year (onlyRevit Build: <build>): the release is the build year plus one, which holds on every file that states both, 2010 to 2016. TheRevit Buildline is read as the build where nothing else gives one.src/formats.rs:schema_classesreads without per-class GUID lists when the reading with them stops early, and keeps the reading that gets further. Every local 2008 to 2013 schema reads to its end; 2014 and later read as before.src/partition_element_records_2023.rs:REVIT_32BIT_RELEASESis 2011 to 2023, andschema_tagsgains rows for 2011 to 2014.src/partition_materials.rs:shading_ids_32: a 2011 to 2013 shading frame holds twou32ElementIds between the 0.5 and the pattern slots.CATEGORY_MATERIAL_SUPPORTED_REVIT_VERSIONSfrom 2011.src/partition_type_materials.rs: on 2011 to 2013, blocks opening00 00 00 00 00 01end the block before them but are not read as a type's map.src/partition_level_records.rs,src/partition_compound_structure.rs,src/partition_room_boundaries.rs: their release lists,layer_layoutandwall_orientation_has_wordtake 2011 to 2014.src/capability.rs,src/bin/rvt_inspect.rs,src/bin/rvt_corpus.rs: 2011 to 2014 map to the new support-matrix row, and the doctor andrvt-inspectcount them as read.examples/probe_re259_revit_2011_2014.rs,reports/element-framing/RE-259-revit-2011-2014-element-records.md: the probe and report.README.md,docs/status.md,docs/compatibility.md,docs/supported-profile.md,docs/support-matrix.json(rowelement-records-revit-2011-2014),docs/rvt-moat-break-reconnaissance.md(addendum),changelog.d/added/revit-2008-2014.md.Testing
Unit tests are banned in this repository: do not add them. Show the change working end to end on real files instead.
tools/check-local.shpasses (fmt, clippy, rustdoc, build, real-file / CLI / contract checks)tools/check-local.sh(required gates): "check-local: all requested gates passed";cargo test --test integration297 passed.cargo +1.87 check --profile ci --all-targets(the MSRV job) passes.rac_advanced_sample_project.rvt. There is no Revit export of a file before 2015: the oracle is the same model saved by Revit 2015.cargo run --release --example probe_re259_revit_2011_2014 -- <2013 rac_advanced> samples/2015-rac_advanced_sample_project.rvt: 5,702 / 5,775 elements, 5,698 shared ElementIds, every one with the same class, 62,071 of 62,153 fields agree. The 82 that differ are in the files' own records: a re-divided curtain wall (12 mullions, 8 panels), wall 140012's box, and two beams that list Level 311 only on 2015.schema_tagsrow.rvt-ifcon the 2013 sample: 180IfcWall, 100IfcDoor, 24IfcWindow, 17IfcSlab, 6IfcRoof, 176IfcColumn, 38IfcBeam, 91IfcSpace, 5 storeys, as its 2015 copy's export, but 48IfcMemberand 20IfcPlateof the re-divided curtain wall. The 2011, 2012, 2013 and 2014 exports pass IfcOpenShell 0.9.0 validation with no issue.rvt-ifcon 132 distinct local files of 2008 to 2027, this branch against main, timestamp lines set aside: the 120 exports of 2015 to 2027 are byte-identical, including Core Interior (2024), the pinned 2015 and 2016 samples and every 2017 to 2027 project at hand; the 12 that change are the files of 2008 to 2014.tools/bench.shand attached the before / afterAudit-honesty checklist
changelog.d/<section>/(seechangelog.d/README.md), not inCHANGELOG.mdchangelog.d/added/revit-2008-2014.md;tools/release/changelog.py checkpasses.docs/compatibility.md"No format versions before Revit 2015" is now "Before Revit 2015, only local closed-source files".examples/and a dated addendum todocs/rvt-moat-break-reconnaissance.mdare includedexamples/probe_re259_revit_2011_2014.rs; addendum "RE-259 Revit 2008 to 2014 files open, and 2011 to 2014 element records read (2026-10-28)".tools/ci/api-doc-ids.pyandtools/ci/re-citations.pypass.Legal and contribution hygiene
CONTRIBUTING.md)CLEANROOM.md)testuser,111111,FY-20XX, etc.) and contain no real-world PIIBreaking changes
None.
BasicFileInfo::from_bytesnow succeeds on files it rejected; every other public signature is unchanged.Screenshots or output samples
Related issues
Refs #421