Table of Contents

Method FromObjects

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

FromObjects(CadDocument, IEnumerable<string>, Tolerance, out int)

Makes the loops of closed objects selected, as HATCH's Select objects takes them: a circle, a closed polyline, a whole ellipse or a closed spline each a loop, the depth of each the count of the others round it; the others passed over and counted.

public static IReadOnlyList<CadBoundaryLoop> FromObjects(CadDocument document, IEnumerable<string> handles, Tolerance tolerance, out int passed)

Parameters

document CadDocument

The document.

handles IEnumerable<string>

The handles of the objects.

tolerance Tolerance

The tolerance a closed polyline is read within.

passed int

How many objects were not closed, or could not be read.

Returns

IReadOnlyList<CadBoundaryLoop>

The loops, the outermost first.

Exceptions

ArgumentNullException

Thrown when the document or the handles are null.