Skip to content

Preserve full element IDs in the HTML viewer - #47

Merged
mahach666 merged 1 commit into
mainfrom
codex/preserve-wide-element-ids
Nov 18, 2026
Merged

mahach666 merged 1 commit into
mainfrom
codex/preserve-wide-element-ids

Conversation

@mahach666

Copy link
Copy Markdown
Contributor

Closes #14.

  • Write element IDs outside JavaScript's safe integer range as decimal strings in HTML metadata.
  • Use the same representation in clashes and 4D tasks so links still resolve. Keep safe IDs as JSON numbers.
  • Cover signed 64-bit bounds, the safe integer boundary, and adjacent IDs in the browser properties panel and clipboard.

Verification

  • Release build with zero warnings. 136 tests plus the real Revit integration test passed on each of .NET 8 and .NET 10.
  • 144 JavaScript unit tests and 113 Chromium end-to-end tests passed.
  • Re-exported the Autodesk Revit 2022 architectural sample and the public Schependomlaan IFC. Compared all 3,804 numeric IDs, properties, geometry and references with the baseline.

Autodesk Revit samples · Schependomlaan dataset

@mahach666
mahach666 merged commit ad78c41 into main Nov 18, 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.

Element ids above 2^53 lose their properties and Copy Id copies a wrong value

1 participant