CadEditRule
from OpenCAD2D import CadEditRule
class CadEditRule(System.Enum) ยท CadEditRule in the .NET reference
What the presenter may do to an entity, as its owner answers through ICadEntityOwner.GetEditRule: a line of a model drawing's view is read-only, a mark may be moved, a dimension edited through its owner.
Values
Edit
Edit: ClassVar[CadEditRule]
Every edit goes to the owner, which takes or refuses each one: a dimension moved, its text overridden, a grip dragged.
Free
Free: ClassVar[CadEditRule]
The presenter edits the entity itself and asks nobody: a line drawn by hand, everything in a plain DXF.
MoveOnly
MoveOnly: ClassVar[CadEditRule]
The entity may be moved (CadEditKind.Move) and nothing else; the move goes to its owner, which records it, as a mark dragged off its part is.
ReadOnly
ReadOnly: ClassVar[CadEditRule]
Nothing may change the entity, erasing it included: a projected line of a view is the model, changed by changing the view, not the line.
Constructors
__init__
def __init__(self, value: int) -> None
Operators and Python protocols
__int__
def __int__(self) -> int