Skip to content

Reject conflicting GLB and CSV element identities - #99

Merged
mahach666 merged 1 commit into
mainfrom
codex/verify-glb-csv-unique-ids
Dec 3, 2026
Merged

mahach666 merged 1 commit into
mainfrom
codex/verify-glb-csv-unique-ids

Conversation

@mahach666

Copy link
Copy Markdown
Contributor

Problem

The element table introduced in #98 could treat two elements from different Revit models as the same because the files reused an elementId. The foreign row linked to the wrong geometry and contributed its quantities to the totals.

Fix

  • Keep GLB extras.uniqueId through HTML export and an IOViewer JSON round trip, including IDs on nodes without geometry.
  • Compare the two uniqueId values when both files supply them. Keep matching by elementId when either file lacks a uniqueId.
  • Report conflicts and exclude those rows before linking, filtering, calculating totals, or downloading CSV.

Validation

  • Reproduced the false match in Chromium before the fix and added a regression test for the warning, selection, totals, and download.
  • 205 JavaScript unit tests, 175 Chromium tests, and 220 .NET tests per target passed. One optional RVT test per target was skipped.
  • Loaded a real pair with 8,161 CSV rows, then changed one uniqueId and verified that only that row was rejected.

@mahach666
mahach666 merged commit 80bdf48 into main Dec 3, 2026
7 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