Skip to content

Differential updates: patch a VIM with a partial export (object model 5.8.0, VimPatchService) - #65

Open
SamuelAB-VIM wants to merge 1 commit into
developfrom
sam/differential-updates
Open

SamuelAB-VIM wants to merge 1 commit into
developfrom
sam/differential-updates

Conversation

@SamuelAB-VIM

@SamuelAB-VIM SamuelAB-VIM commented Oct 23, 2026 •

Copy link
Copy Markdown

Companion to the exporter PR in vimaec/vimaec https://github.com/vimaec/vimaec/pull/1182. The two merge together: the exporter's submodule pointer already points here.

What this adds:

  • Object model 5.8.0 (additive): Element.ChangeToken (Revit's VersionGuid) and BimDocument.Identity, so a VIM knows what each element looked like when it was exported.
  • Vim.Format.Merge.VimPatchService: patches a partial VIM into an existing one on raw tables (no DocumentModel). Changed elements are replaced in place, new ones appended, deleted ones removed, every relation re-pointed, geometry kept aligned.
  • SerializableHeader.CreateRevisionOf and a DocumentBuilder constructor taking a header, so a patched file keeps its Id with a new revision.
  • Generated files (C++/TS object model) regenerated, LF line endings.

Tests: Vim.Format.Tests 64 passed, 2 skipped, 0 failed (2 new VimPatchServiceTests); TS tests 11 passed.

Proof on TowerS (52,657 elements, Revit 2027): a differential update compared element by element with a full export of the same edited state gives 0 of 52,652 differing, and its file passes VimScene.Validate. Full details, files and limits are in the exporter PR.

Note: 5.8.0 may collide with other unmerged vim-format branches; renumber at merge if needed.

🤖 Generated with Claude Code

…ice, export fingerprint header values) - WIP, Fable audit pass, not reviewed

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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