CadEditKind
from OpenCAD2D import CadEditKind
class CadEditKind(System.Enum) ยท CadEditKind in the .NET reference
What an edit does to an entity, as a CadEdit tells an owner. Numbers in the values of an edit are written in the invariant culture, as many digits as bring them back to the bit, and separated by commas.
Values
Erase
Erase: ClassVar[CadEditKind]
The entity erased; the property and both values are null.
Grip
Grip: ClassVar[CadEditKind]
A grip dragged: CadEdit.Property is the grip's index among the entity's grips ("0", "1", ...), the old value where it was, "x,y", and the new value where it went.
Mirror
Mirror: ClassVar[CadEditKind]
The entity mirrored, as MIRROR mirrors it: the new value is the two points of the mirror line, "x0,y0,x1,y1"; the old value is null.
Move
Move: ClassVar[CadEditKind]
The entity moved, as MOVE moves it: the new value is the displacement "dx,dy", "10,-2.5" for 10 to the right and 2.5 down; the old value is null.
Property
Property: ClassVar[CadEditKind]
A property changed in Properties: CadEdit.Property is the row's label ("Layer", "Color", "Text override") and the old and new values are the texts the row shows, "0" and "Steel" for a layer.
Rotate
Rotate: ClassVar[CadEditKind]
The entity turned, as ROTATE turns it: the new value is the base point and the angle in radians, anticlockwise, "x,y,angle"; the old value is null.
Scale
Scale: ClassVar[CadEditKind]
The entity scaled, as SCALE scales it: the new value is the base point and the factor, "x,y,factor"; the old value is null.
Constructors
__init__
def __init__(self, value: int) -> None
Operators and Python protocols
__int__
def __int__(self) -> int