Table of Contents

Method SetLayers

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

SetLayers(CadDocument, IReadOnlyList<string>, IEnumerable<string>, bool)

Gives a group filter layers, as dragging layers onto it or Select Layers does: added to those it has, or in place of them. A layer the drawing does not have is left out.

public static CadEditResult SetLayers(CadDocument document, IReadOnlyList<string> path, IEnumerable<string> layerNames, bool replace)

Parameters

document CadDocument

The document.

path IReadOnlyList<string>

The names of the filter.

layerNames IEnumerable<string>

The layers.

replace bool

Whether they replace the layers the group has.

Returns

CadEditResult

What came of it; refused for a property filter.