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
documentCadDocumentThe document.
pathIReadOnlyList<string>The names of the filter.
layerNamesIEnumerable<string>The layers.
replaceboolWhether they replace the layers the group has.
Returns
- CadEditResult
What came of it; refused for a property filter.