Table of Contents

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

document CadDocument

The document.

entity DxfEntity

The entity, as it stands before the edit.

record CadEditRecord

What the edit plans to do to it.

reason string

Why 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.