Repository navigation
Sheets, Print: expose native 64-bit IDs and accept them in selectors - #331
Merged
Merged
Conversation
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.
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.
Closes #299
Summary
SourceElementId(andViewportRecord.SourceSheetId/PlanView.SourceLevelId) onSheetRecord,ViewportRecord,PlanLevel,PlanView,ElevationView,PrintableSheet, andComposedSheetwhen 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.SourceElementIdcolumn torvtio sheets --csv.rvtio print --list-sheets,--list-levels, and--list-views, appendingsource=<id>for renumbered elements.source:<id>/native:<id>prefixes, and names/numbers in--sheet,--view, and--level.docs/sheets.mdanddocs/printing.mdand add synthetic wide-ID coverage inNativeIdSheetsAndPrintTests.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.