Table of Contents

Method LineWeightIndexOf

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

LineWeightIndexOf(double)

Gets the entry of LineWeights that holds a lineweight, to the hundredth of a millimetre; the table gets a new entry at its end where it has none, as Edit Lineweights adds one.

public int LineWeightIndexOf(double millimetres)

Parameters

millimetres double

The lineweight, 0 for "Use object lineweight" up to 10 mm.

Returns

int

The index of the entry.

Exceptions

ArgumentOutOfRangeException

Thrown when the lineweight is not 0 to 10.