ECCOMPARE — Visually compare 2 DWGs
Visually compare two versions of a DWG drawing directly in AutoCAD. Colour-coded overlay: green = elements of the current version, red = elements of the old version, magenta = identical elements. PDF export of the comparison.
How it works
- Launch ECCOMPARE and select the reference DWG (previous version)
- ElectroCAD clones the entities of the old version into your current drawing via
WblockCloneObjects - The XRefs of the old version are resolved and bound to guarantee the display
- A primitive-based matching identifies common entities (with recursive block explosion and O(n) spatial hashing)
- The colored overlay applies: green/red/magenta depending on the status of each entity
- A WPF panel lets you toggle visibility by colour and adjust the matching tolerance
Smart primitive-based matching
ECCOMPARE does not use a simple coordinate diff — exploded blocks would look different even if they represent the same thing. Instead:
- Complex entities (blocks, inserts) are exploded recursively into primitives (lines, arcs, circles, texts)
- Each primitive is hashed by its spatial position, its type and its geometric parameters
- Matching is performed in O(n) via spatial hash, with configurable tolerance
- Unmatched entities are marked as added (green) or deleted (red)
WPF control panel
A modeless WPF panel is displayed as an overlay on AutoCAD and allows:
- Visibility toggle: show/hide added (green), deleted (red), unchanged (magenta)
- Tolerance slider with on-the-fly matching recalculation
- "Export PDF" button to export the comparison
- "Finish" button that restores the original drawing (command
ECCOMPAREOFF)
Use cases
- Change review — compare two versions of a drawing for a client or a coordinator
- Project audit — quickly identify the changes between two milestones
- Pre-delivery check — make sure a delivered drawing matches the latest approved version
- Conflict resolution — when two drafters have modified the same file
- Comparing an XRef before/after update
Commands
Command: ECCOMPARE # Start the comparison Command: ECCOMPAREOFF # Restore the original drawing Command: ECCOMPAREEXPORT # PDF export (temporary A3 layout + legend)