Table of Contents

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

document CadDocument

The document.

parentPath IReadOnlyList<string>

The names of the filter it is nested in; none for the top.

name string

The name.

layerNames IEnumerable<string>

The layers; none for an empty group, as AutoCAD's New Group Filter makes one.

Returns

CadEditResult

What came of it.