Table of Contents

Method SetLineWeight

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

SetLineWeight(int, double)

Changes an entry of LineWeights, as Edit Lineweights of the editor does; entry 0 stays "Use object lineweight".

public void SetLineWeight(int index, double millimetres)

Parameters

index int

The entry, 1 up.

millimetres double

The lineweight, above nought and up to 10 mm.

Exceptions

ArgumentOutOfRangeException

Thrown when the entry is not 1 up to the last or the lineweight is not above 0 and up to 10.