ICadEditGate
from OpenCAD2D import ICadEditGate
class ICadEditGate(System.Object) ยท ICadEditGate in the .NET reference
The one place an edit is asked about before it is written. CadDocument.ApplyEdit asks the gate of the document once for every existing entity an edit plans to change or erase, before anything is written; an answer of false refuses the whole edit and the drawing stays as it was. The owner contract (an entity whose owner says it may only be moved, or not edited at all) is plugged in here: the default lets every edit through.
Methods
Allows
def Allows(self, document: CadDocument, entity: DxfEntity, record: CadEditRecord) -> tuple[bool, str]
Asks whether one planned change of an entity may be made.