Table of Contents

Method EvaluateHatch

Namespace
GeometryHelper.Dxf
Assembly
GeometryHelper.dll

EvaluateHatch(bool)

Works out the lines of the pattern, as AutoCAD's EvaluateHatch works them out: those Explode() draws, as GetHatchLinesData() gives them, kept for the queries of the lines while the HATCH is not changed. A solid fill and a gradient have none. The library counts the lines it lays, so the estimate AutoCAD can be asked to make of their number first, low or not, changes nothing here.

public void EvaluateHatch(bool underEstimateNumLines)

Parameters

underEstimateNumLines bool

Whether AutoCAD is to estimate the number of the lines low before it lays them; of no effect in the library, which counts them exactly.

Exceptions

NotSupportedException

Thrown for a pattern the HATCH holds no lines of, AutoCAD's own pattern file being AutoCAD's, as Explode() says.

InvalidOperationException

Thrown as Explode() throws: when a loop has an edge that is no shape, the lines would be more than the 2 000 000 of MaxPlacedEntities or cross the loops more than 32 000 000 times, or the loops lie more than 2^52 spacings or lengths of dashes from the pattern's base point.