Table of Contents

CadDrawingChange

from OpenCAD2D import CadDrawingChange

class CadDrawingChange(System.Object) ยท CadDrawingChange in the .NET reference

One object of a comparison of two drawings: where it is, what it is, and for a changed one what differs.

Properties and fields

BoxAfter

.NET

@property
def BoxAfter(self) -> System.Array[float] | None

Gets the box it takes in the second drawing; null for a removed object or one that draws nothing.

BoxBefore

.NET

@property
def BoxBefore(self) -> System.Array[float] | None

Gets the box it took in the first drawing, [minX, minY, maxX, maxY] in millimetres; null for an added object or one that draws nothing.

Handle

.NET

@property
def Handle(self) -> str

Gets the handle of the object: its own for one that stands in a space, the handle of the block reference it came out of for one drawn by a block, which then shares it with its pieces (see CadFlatEntity.Handle).

Kind

.NET

@property
def Kind(self) -> str

Gets the DXF name of the kind, as LINE or MTEXT.

Layer

.NET

@property
def Layer(self) -> str

Gets the layer; of the first drawing for a removed one, else of the second.

Layout

.NET

@property
def Layout(self) -> str

Gets the layout it is drawn in, or Model; of the first drawing for a removed one, else of the second.

MovedBy

.NET

@property
def MovedBy(self) -> System.Array[float] | None

Gets how far its box moved, [dx, dy] in millimetres, where it kept its width and height and its place changed; null where it did not move, or changed its size, or has no box in one of the drawings.

Properties

.NET

@property
def Properties(self) -> System.Collections.Generic.IReadOnlyList[str]

Gets the names of what differs, in alphabetical order, as the JSON of CadDrawingJson names its fields (layer, color, box, start, text); empty for an object added or removed.