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
documentCadDocumentThe document.
viewportstringThe handle of the viewport.
layerstringThe name of the layer.
lineWeightDxfLineWeightThe lineweight.
Returns
- CadEditResult
What came of it.
Exceptions
- ArgumentNullException
Thrown when the document is null.