Table of Contents

Method Delete

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

Delete(CadDocument, string)

Deletes a layer, as the Layer manager deletes one: only a layer nothing uses. Refused, with the reason, for layer 0, Defpoints, the current layer, a layer of an external reference (Base|Steel), a layer an entity is on, in any space or block. A layer a viewport of a layout freezes is deleted, the viewports thawed in the same undo step, which one undo takes back with the layer.

public static CadEditResult Delete(CadDocument document, string name)

Parameters

document CadDocument

The document.

name string

The layer's name.

Returns

CadEditResult

What came of it.