Table of Contents

CadTranslateLayer

from OpenCAD2D import CadTranslateLayer

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

A layer of the Layer Translator's lists, as a layer of the drawing or of a standards file: the settings a layer of that name has, or is to be given. A layer WALL of colour 1, linetype HIDDEN, 0.35 mm lineweight and no transparency is one of these; mapped to by OLD-WALL, it makes OLD-WALL's objects WALL's.

Constructors

__init__

.NET

def __init__(self, name: str) -> None

Makes a layer of the colour white (7) and the linetype Continuous, as AutoCAD's New layer in the translator.

Properties and fields

Color

.NET

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

Gets or sets the colour; white (7) until set.

IsInUse

.NET

@property
def IsInUse(self) -> bool

Gets whether anything of the drawing is on the layer, or a block, a style or the header names it; true for a layer of the Translate From list that is used.

LineWeight

.NET

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

Gets or sets the lineweight; the drawing's default until set.

LinetypeName

.NET

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

Gets or sets the name of the linetype; Continuous until set.

Name

.NET

@property
def Name(self) -> str

Gets the layer's name.

PlotStyleName

.NET

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

Gets or sets the name of the plot style; empty for none.

TransparencyPercent

.NET

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

Gets or sets the transparency in per cent, from 0 (solid) to 90.

Methods

Clone

.NET

def Clone(self) -> CadTranslateLayer

Makes another layer of the same settings.