Method Compare
- Namespace
- OpenCAD2D
- Assembly
- OpenCAD2D.Core.dll
Compare(CadDocument, CadDocument, Tolerance)
Compares two drawings: all their layouts, model space included. Two lines of one handle whose end moved 3 mm come out as one
changed object with end and box among its properties.
public static CadDrawingDiffResult Compare(CadDocument before, CadDocument after, Tolerance tolerance)
Parameters
beforeCadDocumentThe first drawing, the one things changed from.
afterCadDocumentThe second drawing.
toleranceToleranceHow far two numbers may differ and still be the same, in millimetres: its EqualPoint.
Returns
- CadDrawingDiffResult
The objects added, removed and changed.
Exceptions
- ArgumentNullException
Thrown when a drawing is null.