Table of Contents

CadLayerStateLayer

from OpenCAD2D import CadLayerStateLayer

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

A layer of a layer state as AutoCAD's Edit Layer State lists it: the properties the state saved for it, each of which the dialog may change. The state is changed by OK; the drawing's layers are changed only when the state is restored.

Properties and fields

Color

.NET

@property
def Color(self) -> DxfColor
@Color.setter
def Color(self, value: DxfColor | None) -> None

Gets or sets the colour: one of the index, or a true colour.

IsFrozen

.NET

@property
def IsFrozen(self) -> bool
@IsFrozen.setter
def IsFrozen(self, value: bool) -> None

Gets or sets whether the state freezes the layer.

IsLocked

.NET

@property
def IsLocked(self) -> bool
@IsLocked.setter
def IsLocked(self, value: bool) -> None

Gets or sets whether the state locks the layer.

IsMissing

.NET

@property
def IsMissing(self) -> bool

Gets whether the drawing has no layer of the state's: kept in the state, passed over on restore.

IsNewViewportFrozen

.NET

@property
def IsNewViewportFrozen(self) -> bool
@IsNewViewportFrozen.setter
def IsNewViewportFrozen(self, value: bool) -> None

Gets or sets whether the state freezes the layer in new viewports.

IsOn

.NET

@property
def IsOn(self) -> bool
@IsOn.setter
def IsOn(self, value: bool) -> None

Gets or sets whether the state turns the layer on.

IsPlotted

.NET

@property
def IsPlotted(self) -> bool
@IsPlotted.setter
def IsPlotted(self, value: bool) -> None

Gets or sets whether the state plots the layer.

LineWeight

.NET

@property
def LineWeight(self) -> DxfLineWeight
@LineWeight.setter
def LineWeight(self, value: DxfLineWeight) -> None

Gets or sets the lineweight: Default, or one of AutoCAD's widths.

Linetype

.NET

@property
def Linetype(self) -> str
@Linetype.setter
def Linetype(self, value: str | None) -> None

Gets or sets the linetype's name, one of the drawing's.

Name

.NET

@property
def Name(self) -> str

Gets the layer's name; for a layer the drawing no longer has, the name the state keeps, or its handle.

Transparency

.NET

@property
def Transparency(self) -> int
@Transparency.setter
def Transparency(self, value: int) -> None

Gets or sets the transparency, 0 to 90 per cent.

Methods

ToString

.NET

def ToString(self) -> str