Method InsertLoopAt
- Namespace
- GeometryHelper.Dxf
- Assembly
- GeometryHelper.dll
InsertLoopAt(int, DxfHatchLoop)
Puts a loop in before the loop of an index, as AutoCAD's InsertLoopAt: one read from a HATCH of the same normal
and elevation written as it was read; any other from its shapes, taken into the system of the normal, a polyline as a
loop of a polyline, the edges as a loop of edges, the arcs and ellipses that run clockwise about the normal flagged so,
each edge to start where the one before it ends, within Default. A loop read is written with the
count of fit points of each spline edge (97) as the file's version has it: from R2010 a spline edge with none writes
97 0, before it none. A HATCH that was associative is so no longer, as AutoCAD's is not once its loops are changed: its group 71 nought and the
handles of the objects its loops followed taken out.
public void InsertLoopAt(int loopIndex, DxfHatchLoop hatchLoop)
Parameters
loopIndexintWhere it goes, from nought to NumberOfLoops.
hatchLoopDxfHatchLoopThe loop.
Exceptions
- ArgumentNullException
Thrown when the loop is null.
- ArgumentOutOfRangeException
Thrown when the index is below nought or above the count.
- ArgumentException
Thrown when the loop does not lie in the plane of the HATCH, within Default, 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.