Method Allows
- Namespace
- OpenCAD2D
- Assembly
- OpenCAD2D.Core.dll
Allows(CadDocument, DxfEntity, CadEditRecord, out string)
Asks whether one planned change of an entity may be made.
public bool Allows(CadDocument document, DxfEntity entity, CadEditRecord record, out string reason)
Parameters
documentCadDocumentThe document.
entityDxfEntityThe entity, as it stands before the edit.
recordCadEditRecordWhat the edit plans to do to it.
reasonstringWhy it may not, as the command line shows it ("This line belongs to the model"); null when it may.
Returns
- bool
True when the change may be made.