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
@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
@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
@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
@property
def Kind(self) -> str
Gets the DXF name of the kind, as LINE or MTEXT.
Layer
@property
def Layer(self) -> str
Gets the layer; of the first drawing for a removed one, else of the second.
Layout
@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
@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
@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.