Skip to content

Read nested Extensible Storage in projects and loaded families - #278

Merged
mahach666 merged 1 commit into
mainfrom
codex/nested-extensible-storage
Nov 19, 2026
Merged

mahach666 merged 1 commit into
mainfrom
codex/nested-extensible-storage

Conversation

@mahach666

Copy link
Copy Markdown
Collaborator

Refs #15

Changes

  • Expose decoded public Extensible Storage through Element.ExtensibleStorage and full JSON, including in RVT and RFA files with 32-bit element IDs.
  • Add RevitFileInfo.EmbeddedFamilyExtensibleStorage for elements in loaded family documents. The content key and saved element ID identify the owner. Embedded records use their own family schemas when present.
  • Preserve nested entities, arrays, maps, and exact wide integers. Regression tests cover owner isolation, family schema access, both ID widths, and truncated records.

Revit verification

Compared schema IDs, owning elements, nested values, and applicable element references from the saved files with the Revit API. For embedded records, the Revit reference came from Document.EditFamily.

Saved layout Revit reference Matching entities
2020 Revit 2020.2, project, two loaded families, and both standalone RFAs 9
2022 Revit 2022, same project and family scenarios 9
2027 Revit 2027.2, same project and family scenarios 9
2024 Revit 2027.2, read-only upgrade, three embedded family documents 4
2025 Revit 2027.2, read-only upgrade, project records 2
2027 Revit 2027.2, two generated projects plus structural and electrical samples 14

Direct Revit 2024 and 2025 launches were blocked by an unsigned add-in prompt. The comparison used Revit 2027.2 to open those saved layouts without saving them.

Regression checks

  • Local solution tests passed on .NET 8 and .NET 10 with zero failures and 447 fixture-dependent skips per target. The native-core Scene build passed.
  • IFC and Compact JSON were byte-identical to the baseline for the generated 2020, 2022, and 2027 projects. The existing full JSON fields matched after excluding the added Extensible Storage data.

@mahach666
mahach666 merged commit b8e4348 into main Nov 19, 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