Table of Contents

Method SetLineWeight

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

SetLineWeight(CadDocument, string, string, DxfLineWeight)

Overrides a layer's lineweight in a viewport, as the VP Lineweight column: Default or one of AutoCAD's widths.

public static CadEditResult SetLineWeight(CadDocument document, string viewport, string layer, DxfLineWeight lineWeight)

Parameters

document CadDocument

The document.

viewport string

The handle of the viewport.

layer string

The name of the layer.

lineWeight DxfLineWeight

The lineweight.

Returns

CadEditResult

What came of it.

Exceptions

ArgumentNullException

Thrown when the document is null.