Skip to content

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

Open

Description

@DrunkOnJava

Status 2026-11-05. The framing holds on 2015 to 2022 (RE-280, #1168). Saved parameters, the phase order and the 4-byte Element base are read there (RE-281, #1175), with wall and column properties (#1182, #1183, #1226). Left: wall and element types, materials, stairs, cut loops, mullion hosts, connectors, column joins, family forms and saved meshes, which are still read only from 2023.

What

The native record reader (rvt::research::native_document::extract_records, behind extract and extract_graphs) refuses every file whose layout release is not 2023 to 2027: ensure!(matches!(version, 2023..=2027), "native record framing is unvalidated for Revit {version}") (src/research/native_document.rs). group_records knows two id widths, 4 bytes on 2023 and 8 from 2024.

Everything read from native records is therefore missing on Revit 2015 to 2022:

The 1.0 scope is every release from 2015 to 2027 with no limitations (the maintainer, 2026-10-21; docs/release-1.0-criteria.md W2), so this gap blocks W2, W6 and W7 on eight releases.

Evidence available

  • Autodesk's sample projects 2016 to 2027 (-f samples=true, research/autodesk-sample-projects.tsv; RE-163 already read their 2016 to 2027 content documents), each sample saved by consecutive releases, so a 2022 file's records can be checked against its 2023 copy's.
  • The family corpus 2016 to 2027 in CI (RVT_SAMPLES_DIR).
  • BIMcollab's Revit 2015 structural example with Revit 2015's own export (-f bimcollab=true, RE-198), now a development model.

Done when

Measured per release, 2015 to 2022: the global preamble (registry, index, increments, extensible-storage catalogue), each record group's framing (id width, header, dual lengths, declared counts) and the records' fields against the same model's 2023 copy, with a report stating where each release's layout differs. Then extract_records admits each release the measurement covers, and the readers built on it are measured there: parameters by name and value against the newer copy, and on BIMcollab the footings' Level against Revit 2015's export (#879).

Activity

  1. added
    area:elements
    area:reader
    priority:P1
    type:research
    on Oct 30, 2026
  2. DrunkOnJava commented on Oct 30, 2026

    @DrunkOnJava
    OwnerAuthor

    RE-280 (#1168) found the framing holds on 2015 to 2022, with one difference: before 2018 the declared body bytes count each record's trailing length word. It also found a defect on Revit 2023, which is already admitted: native_element::decode_base requires Identifier as 2024's 8-byte m_id64 and refuses every record of 2015 to 2023, where it is a 4-byte m_id (2,615 of 2,615 on Einhoven). So the readers built on the Element base (the phase order, RE-184) read nothing on 2023 today. The admitting PR fixes decode_base for both shapes and measures what moves on 2023 (Einhoven, the 2023 samples) as well as on the newly admitted releases.

  3. 63 remaining items

  4. changed the title [-]Native records on Revit 2015 to 2022: the framing is unmeasured, so parameters, phases, types, stairs and saved meshes are read only from 2023[/-] [+]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[/+] on Nov 5, 2026
  5. DrunkOnJava commented on Nov 15, 2026

    @DrunkOnJava
    OwnerAuthor

    A sibling check of the Revit 2015 to 2023 ElementId shape (#1584, RE-364 section 11): the native readers take their ElementIds through native_json::element_id, which reads the Revit 2024 shape (/m_id/m_id64) only, where 2015 to 2023 saves hold /m_id/m_id. The wall reader was changed to read either (#2037). To see whether the other readers that use the shared helper lose anything on Revit 2023 for the same reason, a branch made the shared helpers read either shape (Measure run 43674938401, commit 666b78fb96a7, archived under refs/archive/2026-11-15/cited/666b78fb96a7), and the kept exports of Autodesk's 2023 samples (rac_advanced, rac_basic, rst_basic, rme_basic) were held to the same projects' 2024 saves property by property (save_pair_props.py), before and after. Result: nothing changes beyond what #2037 already does (the curtain walls' Length). So the property gaps between a 2023 save and its 2024 save (type names, IsExternal on doors and spaces, window quantities, the element-record values) are not caused by the id shape in those readers, and the shared helpers stay as they are. That narrows what is left of the 2023 gap to the readers that are not run there.

  6. DrunkOnJava commented on Nov 15, 2026

    @DrunkOnJava
    OwnerAuthor

    Status 2026-11-15, from main (e594a2b), for the "types, materials" part of the list above:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:elementsarea:readerpriority:P1type:research

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions