Method AddGroup
- Namespace
- OpenCAD2D
- Assembly
- OpenCAD2D.Core.dll
AddGroup(CadDocument, IReadOnlyList<string>, string, IEnumerable<string>)
Adds a group filter, nested in a filter or at the top, holding the layers named (those the drawing has).
public static CadEditResult AddGroup(CadDocument document, IReadOnlyList<string> parentPath, string name, IEnumerable<string> layerNames)
Parameters
documentCadDocumentThe document.
parentPathIReadOnlyList<string>The names of the filter it is nested in; none for the top.
namestringThe name.
layerNamesIEnumerable<string>The layers; none for an empty group, as AutoCAD's New Group Filter makes one.
Returns
- CadEditResult
What came of it.