Skip to content

Add experimental native RVT downgrade output - #362

Merged
mahach666 merged 3 commits into
mainfrom
codex/revit-downgrade-main
Dec 4, 2026
Merged

mahach666 merged 3 commits into
mainfrom
codex/revit-downgrade-main

Conversation

@mahach666

@mahach666 mahach666 commented Dec 3, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Add experimental native RVT downgrade output alongside preflight for Revit 2027 through 2020.
  • Preserve the source and profile. Require --allow-loss and a JSON report when record owners must be omitted.
  • Rewrite the target schema, stored records and element ID widths. Verify archive framing and checksums before writing the output file.
  • Cover all seven adjacent transitions with a synthetic test and a repeatable validation script.
  • Require a complete target project when writing Revit 2020 or 2021 projects. Revit 2020 needs the project unit formats, and Revit 2021 needs the unit schema catalogs. Class-table-only profiles remain usable for --check.

Validation

  • The Release solution build passed. The earlier verification also passed the NativeCoreOnly build and local NuGet pack.
  • .NET 8 passed 12,575 tests and .NET 10 passed 12,579. Both full runs skipped 501 optional fixture tests. The focused runs with native RVT fixtures passed all seven tests on both frameworks. Two additional reader tests on a real Revit 2025 fixture passed in the earlier verification, and its compact JSON matches main byte-for-byte with --r22-layout.
  • The adjacent and skipped-year matrix found 32 outputs the target Revit rejected with a profile containing only the class table. On fb5f17e all 30 rebuilt Revit 2021 outputs and both rebuilt Revit 2020 outputs opened in their target versions with a complete profile. SHA-256 matched the files opened in Revit.
  • Revit 2020.2 also opened all ten files rebuilt from the corrected Revit 2021 outputs. These cover the final step of nine adjacent routes and one mixed route. Models were opened without Audit or repair and closed without saving.
  • The matrix includes native opens in Revit 2022, 2023 and 2024. Autodesk Revit 2025.1 (25.1.0.44) opened all 13 outputs without Audit or repair. The set covers nine adjacent downgrade steps, three direct 2027 to 2025 transitions, and one independently saved Revit 2026 source. For the final acceptance run, all ten 2026-format outputs opened in Revit 2027.2 with an in-memory upgrade, as agreed. One model opened after a warning about steel fabrication annotations. Native Revit 2026 was unavailable.
  • The final acceptance matrix covered all 157 cases on the verified head. Every output opened in the designated Revit release, and all eight command-line controls passed.

Refs #29

@mahach666
mahach666 marked this pull request as ready for review December 3, 2026 22:37
@mahach666
mahach666 merged commit f56063f into main Dec 4, 2026
5 checks passed
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.

1 participant