Table of Contents

Method AppendLoop

Namespace
GeometryHelper.Dxf
Assembly
GeometryHelper.dll

AppendLoop(DxfHatchLoop)

Adds a loop after the others, as AutoCAD's AppendLoop of a HatchLoop: written as InsertLoopAt(int, DxfHatchLoop) writes one.

public void AppendLoop(DxfHatchLoop hatchLoop)

Parameters

hatchLoop DxfHatchLoop

The loop.

Exceptions

ArgumentNullException

Thrown when the loop is null.

ArgumentException

Thrown when the loop does not lie in the plane of the HATCH, or its edges do not run end to end (the last of a loop flagged NotClosed need not end where the first starts).

InvalidOperationException

Thrown when the HATCH is erased.

AppendLoop(DxfHatchLoopTypes, IReadOnlyList<GeoPoint2>, IReadOnlyList<double>)

Adds a loop of a polyline after the others, as AutoCAD's AppendLoop of vertices and bulges: in the system of the normal, as given, closed, its type with Polyline. A HATCH that was associative is so no longer, as InsertLoopAt(int, DxfHatchLoop) says.

public void AppendLoop(DxfHatchLoopTypes loopType, IReadOnlyList<GeoPoint2> vertexCollection, IReadOnlyList<double> bulgeCollection)

Parameters

loopType DxfHatchLoopTypes

What the loop is.

vertexCollection IReadOnlyList<GeoPoint2>

The vertices, two or more, in the system of the normal; a last on the first is kept, as AutoCAD keeps it.

bulgeCollection IReadOnlyList<double>

The bulge of the segment that leaves each vertex, as many as the vertices; null for none.

Exceptions

ArgumentNullException

Thrown when the vertices are null.

ArgumentException

Thrown when there are fewer than two vertices, a coordinate or bulge is not a finite number, or the bulges are not as many as the vertices.

InvalidOperationException

Thrown when the HATCH is erased.