Table of Contents

Method Purge

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

Purge(IEnumerable<string>)

Purge Layers: deletes the layers named that nothing uses, as the dialog's menu does; a layer in use, the current layer, 0 and Defpoints are kept; a layer a viewport freezes is thawed there and deleted. Each layer is deleted on its own, so that one that is refused leaves the others deleted. A layer deleted leaves the list.

public IReadOnlyList<string> Purge(IEnumerable<string> names)

Parameters

names IEnumerable<string>

The layers selected in the list.

Returns

IReadOnlyList<string>

The names of the layers deleted, in the order given; none, with Message saying why, where a delete failed and took back the command's group, the layers deleted before it among them.