Repository navigation
research(reader): the native record framing holds on Revit 2015 to 2022, and what keeps them refused (#1158) (RE-280) - #1168
Merged
Conversation
…on Revit 2015 to 2022 (#1158) (RE-280) Per file: each global stream's parse on its own, the shape of the classes the native contracts read, every group of channels 101 to 103 against every id width and extra-field width with declared counts, and the decoded records' Element base, graph and saved parameter sets with refusal histograms. With two files, the same model's records by ElementId against the newer copy. Its count lines are kept for BIMcollab by the scrub script; the JSON example lines are not.
… Element base through either Identifier shape and keeps the refusal text (#1158) (RE-280)
…22; the Element base, the catalogue and the pre-2018 declared sizes keep them refused (#1158) (RE-280)
Owner
Author
|
Owner review: research only, no
|
DrunkOnJava
enabled auto-merge (squash)
October 30, 2026 19:31
14 of 15 tasks
DrunkOnJava
added a commit
that referenced
this pull request
Oct 30, 2026
…2015 to 2022, and the Element base on a 4-byte Identifier (#1158) (RE-281) (#1175) ## Summary Saved parameters and the project's phase order are read on Revit 2015 to 2022 (#1158), experimentally. `native_element::decode_base` took `Identifier` for Revit 2024's 8-byte `m_id64` and refused the Element base of every 2015 to 2023 record; it takes the 4-byte `m_id` too, which also lets the phase order read on Revit 2023 for the first time. On Autodesk's 23 projects with a 2023 copy, 932,645 parameters read by name and value equal the copy's and 243 differ, each an edit between the saves. Every export is unchanged: the phase order reads on all 33 sample projects of 2015 to 2023 and Einhoven and no element of any is left out of the last phase. Every other native reader stays on 2023 to 2027, and the extensible-storage catalogue and 2015 to 2017 `VarSketch` records still refuse. #879's footings name no Level (RE-281 §5). ## Motivation #1158 and its "done when": admit the releases the RE-280 measurement covers and measure the readers built on them there, parameters by name and value against the newer copy, and on BIMcollab the footings' Level against Revit 2015's export (#879). ## Changes - `src/research/native_element.rs`, `native_json.rs` (`identifier_i64`): the Element base takes either shape of `Identifier`. - `src/research/native_document.rs`: `NATIVE_RELEASES` (2015 to 2027), `Options::releases` (default 2023 to 2027, the old gate, for every reader that does not name it), and `group_records` takes the 2015 to 2017 declared body size (bodies plus 4 per record, RE-280 §4). - `src/research/native_element_parameters.rs`, `native_phases.rs`: the two readers measured on 2015 to 2022 name `NATIVE_RELEASES`. Their comments, `elements::parameters`, `rvt-elements` and `rvt-py` say 2015 to 2027. - `probes/examples/probe_re281_native_levels.rs`, `probe_re281_parameter_pairs.rs`, `tools/re/native_levels_vs_ifc.py`: the measurement. `tools/ci/scrub-holdout-results.sh` keeps their counts, and BIMcollab's property set census counts (standard `Pset_` and `Qto_` names only), for a model without a licence. - `reports/element-framing/RE-281-native-admission.md`, `changelog.d/added/saved-parameters-2015-2022.md`, the support matrix (`native-element-parameters`, `ifc-revit-property-sets`), README, `docs/status.md`, `docs/supported-profile.md`, `docs/contribution-map.md`, `docs/release-1.0-criteria.md` and a dated addendum in `docs/rvt-moat-break-reconnaissance.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.sh` passes: this PR's CI. (No local build: Measure builds it. `rustfmt --edition 2024 --check`, `python3 tools/release/changelog.py check` and `tools/ci/api-doc-ids.py` pass.) - [x] Verified end to end on real Revit files, in the report: Measure [41116945112](https://github.com/DrunkOnJava/rvt-rs/actions/runs/41116945112) (unfiltered, nordic, r2025, samples, BIMcollab; head at the same `src/` as this branch), [41118620685](https://github.com/DrunkOnJava/rvt-rs/actions/runs/41118620685) (parameters by name against the 2023 copies), [41118961781](https://github.com/DrunkOnJava/rvt-rs/actions/runs/41118961781) and [41119973943](https://github.com/DrunkOnJava/rvt-rs/actions/runs/41119973943) (BIMcollab's Levels and footings), and the unfiltered run on this branch against its own base, [41122598346](https://github.com/DrunkOnJava/rvt-rs/actions/runs/41122598346): 91 models and samples, every IFC hash identical, no scorer or info file differs. BIMcollab has no licence, so only counts left the runner. - [x] Witness verdicts: the export is unchanged on every model of the unfiltered run, so no observation moves (CI passed, including Corpus health and IfcOpenShell validates exports). - [x] Performance: on one runner, both sides in turn ([41127674661](https://github.com/DrunkOnJava/rvt-rs/actions/runs/41127674661)), `rvt-ifc` is unchanged on Core Interior and the four RE1 models (0.96 to 1.01) and takes 0.04 to 0.5 s longer on each file of 2015 to 2023, the two native passes those releases did not make before (RE-281 section 6). ## Audit-honesty checklist - [x] README and the docs reflect the current state after this PR: 2015 to 2022 parameters are experimental and not measured against a Revit export there - [x] A user-visible change has its entry as a fragment under `changelog.d/added/` - [x] #879 is not resolved: its saved Level is ruled out, and the contribution map says so - [x] The limitations introduced are in the report (§6), the support matrix notes and the PR body: `--revit-property-sets` on 2015 to 2022 is written from parameters no export checks - [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 - [x] A reproducible probe under `probes/examples/` and a dated addendum to `docs/rvt-moat-break-reconnaissance.md` are included ## 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 test fixtures were added Contributor declaration (`CLEANROOM.md`): the changes in this PR are based on public byte observations of Autodesk's published sample projects and BIMcollab's public example project, rvt-rs's own readers and its prior reports. 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. ## Breaking changes `rvt::research` (outside the semver promise): `native_document::Options` gains the field `releases`. None for the stable API. ## Screenshots or output samples No IFC output changed on any file measured. ## Related issues Refs #1158, #879. Follows #1168 (RE-280).
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
RE-280 measures the native record reader on Revit 2015 to 2022 (#1158) and admits nothing. The framing
native_documentreads Revit 2023 with holds on all 27,762 record groups of Autodesk's 30 sample projects of those releases and BIMcollab's Revit 2015 example, with one difference: before Revit 2018 a group's declared body size counts each record's trailing length word. The preamble parses on all 31 files bar the extensible-storage catalogue of nine, 98.8 to 100 per cent of the declared elements' object graphs decode with the owner id agreeing on every one, and the records agree with the same project's 2023 copy.native_element::decode_baserefusesIdentifieras 2015 to 2023 write it (a 4-bytem_id), so the phase order is not read on 2023 either; the report says which three contracts the admitting PR changes.Motivation
#1158: parameters, phases, types, stairs, symbol cut loops, mullion hosts and saved meshes are read from native records, which are refused on eight releases, and #879's 16 footings need the parameter store of a Revit 2015 file. This is the measurement the admission needs.
Changes
probes/examples/probe_re280_native_framing_pre2023.rs(new): the preamble one stream at a time, the shape of the classes the contracts read, every group of channels 101 to 103 against eight framings with the declared counts, the channel-102 records' Element base, object graph and saved parameters with refusal histograms, and, given two files, the same model's records by ElementId.tools/ci/scrub-holdout-results.sh: keeps the probe'snative framing:lines (counts, schema names and normalised error text, in a restricted alphabet) for BIMcollab; its JSON example lines, which carry ElementIds, are still dropped.reports/element-framing/RE-280-native-framing-pre2023.md,changelog.d/research/native-framing-pre2023.md, the dated addendum indocs/rvt-moat-break-reconnaissance.mdand the Native records on Revit 2015 to 2022: types, materials, stairs, cut loops, mullion hosts, connectors, family forms and saved meshes are read only from 2023 #1158 row ofdocs/contribution-map.md.No
src/change.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: this PR's CI. (No local build: the probe is built by Measure;rustfmt --edition 2024,python3 tools/release/changelog.py checkandtools/ci/api-doc-ids.pypass.)Audit-honesty checklist
changelog.d/research/VarSketchmodifier, the pre-2018 declared sizes) are in the report and indocs/contribution-map.mdprobes/examples/and a dated addendum todocs/rvt-moat-break-reconnaissance.mdare includedLegal and contribution hygiene
Contributor declaration (
CLEANROOM.md): the changes in this PR are based on public byte observations of Autodesk's published sample projects and BIMcollab's public example project, rvt-rs's own readers and its prior reports. 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.Breaking changes
None.
Screenshots or output samples
Not applicable: no IFC output changed.
Related issues
Refs #1158, #421, #879.