Table of Contents

CadPlotPen

from OpenCAD2D import CadPlotPen

class CadPlotPen(System.Object) ยท CadPlotPen in the .NET reference

What a plot draws an item as, after its plot style: the colour, and where the style sets them the lineweight, the linetype and the shape of the line's ends and corners. Made by CadPlotStyleResolver; never changed.

Properties and fields

Dashes

.NET

@property
def Dashes(self) -> System.Array[float] | None

Gets the dash pattern the style sets, in millimetres of the sheet, as on and off lengths in turn (an on length of nought is a dot); null for a solid line, where CadPlotPen.HasLinetype.

HasLineWeight

.NET

@property
def HasLineWeight(self) -> bool

Gets whether the style sets the lineweight; false, the object's own is plotted.

HasLinetype

.NET

@property
def HasLinetype(self) -> bool

Gets whether the style sets the linetype; false, the object's own is plotted.

LineEnd

.NET

@property
def LineEnd(self) -> CadPlotLineEnd

Gets the shape of a line's end.

LineJoin

.NET

@property
def LineJoin(self) -> CadPlotLineJoin

Gets the shape of a corner.

LineWeight

.NET

@property
def LineWeight(self) -> float

Gets the lineweight the style sets, in millimetres, where CadPlotPen.HasLineWeight.

Rgb

.NET

@property
def Rgb(self) -> int

Gets the colour plotted, 0xRRGGBB, after the style's colour, grayscale and screening.