Skip to content

Sheets, Print: expose native 64-bit IDs and accept them in selectors - #331

Merged
mahach666 merged 2 commits into
mainfrom
feat/native-ids-sheets-print
Nov 27, 2026
Merged

mahach666 merged 2 commits into
mainfrom
feat/native-ids-sheets-print

Conversation

@mahach666

Copy link
Copy Markdown
Collaborator

Closes #299

Summary

  • Expose lossless decimal SourceElementId (and ViewportRecord.SourceSheetId / PlanView.SourceLevelId) on SheetRecord, ViewportRecord, PlanLevel, PlanView, ElevationView, PrintableSheet, and ComposedSheet when a wide 64-bit Revit ID was renumbered into a 32-bit document-local key, omitting JSON fields when unchanged and keeping existing constructors compatible.
  • Add a SourceElementId column to rvtio sheets --csv.
  • Keep local 32-bit IDs in column 0 of rvtio print --list-sheets, --list-levels, and --list-views, appending source=<id> for renumbered elements.
  • Accept 32-bit local IDs, wide 64-bit native IDs, explicit source:<id> / native:<id> prefixes, and names/numbers in --sheet, --view, and --level.
  • Document local vs. 64-bit Revit element IDs in docs/sheets.md and docs/printing.md and add synthetic wide-ID coverage in NativeIdSheetsAndPrintTests.

Verification

  • dotnet test tests/RvtIO.Tests/RvtIO.Tests.csproj -c Release: 12199 passed, 0 failed, 453 skipped (net10.0); 12195 passed, 0 failed, 453 skipped (net8.0).
  • dotnet build src/RvtIO.Scene/RvtIO.Scene.csproj -c Release -p:BuildNativeCoreOnly=true: 0 errors.

mahach666 and others added 2 commits November 27, 2026 06:10
SourceElementId is the last column of the sheet CSV. The view list keeps its
level column and appends level-source when the level was renumbered. Empty
source ID fields are left out of JSON. A sheet record also reports the
original 64-bit IDs of the renumbered elements it owns.
@mahach666
mahach666 merged commit 30e61cc into main Nov 27, 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.

Expose native 64-bit Revit IDs in sheet listings and accept them in print selectors

1 participant