Table of Contents

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

before CadDocument

The first drawing, the one things changed from.

after CadDocument

The second drawing.

tolerance Tolerance

How 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.