Table of Contents

Interface ICadEditGate

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

The one place an edit is asked about before it is written. ApplyEdit(string, IReadOnlyList<CadEditRecord>, Action<CadEditScope>) 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.

public interface ICadEditGate

Methods

Allows(CadDocument, DxfEntity, CadEditRecord, out string)

Asks whether one planned change of an entity may be made.