CadRemoteLayer
from OpenCAD2D.Remote import CadRemoteLayer
class CadRemoteLayer(System.Object) ยท CadRemoteLayer in the .NET reference
A layer of a drawing of a running OpenCAD2D, as the Layer manager lists it: its name and how it looks. One read from CadRemoteDocument.Layers is a copy; change it and give it to CadRemoteDocument.ModifyLayer to write the changes, or make a new one and give it to CadRemoteDocument.AddLayer.
Constructors
__init__
def __init__(self, name: str) -> None
Makes a layer to add to a drawing.
Properties and fields
Color
@property
def Color(self) -> DxfColor
@Color.setter
def Color(self, value: DxfColor) -> None
Gets or sets the colour of the layer: an AutoCAD colour index from 1 to 255, or a true colour (DxfColor.FromRgb).
Description
@property
def Description(self) -> str
@Description.setter
def Description(self, value: str) -> None
Gets or sets the description of the layer, as the Layer manager shows it; empty for none.
IsFrozen
@property
def IsFrozen(self) -> bool
@IsFrozen.setter
def IsFrozen(self, value: bool) -> None
Gets or sets whether the layer is frozen: a frozen layer's objects are not drawn, and the app refuses to freeze the current layer.
IsLocked
@property
def IsLocked(self) -> bool
@IsLocked.setter
def IsLocked(self, value: bool) -> None
Gets or sets whether the layer is locked: its objects are drawn and the user cannot change them.
IsOn
@property
def IsOn(self) -> bool
@IsOn.setter
def IsOn(self, value: bool) -> None
Gets or sets whether the layer is on: an off layer's objects are not drawn.
IsPlottable
@property
def IsPlottable(self) -> bool
@IsPlottable.setter
def IsPlottable(self, value: bool) -> None
Gets or sets whether the layer is plotted.
LineWeight
@property
def LineWeight(self) -> DxfLineWeight
@LineWeight.setter
def LineWeight(self, value: DxfLineWeight) -> None
Gets or sets the lineweight of the layer: DxfLineWeight.ByLineWeightDefault until set. The drawing refuses a weight AutoCAD has none of, and one by layer or by block.
Linetype
@property
def Linetype(self) -> str
@Linetype.setter
def Linetype(self, value: str) -> None
Gets or sets the name of the layer's linetype; Continuous until set. The drawing refuses a linetype it does not list.
Name
@property
def Name(self) -> str
Gets the name of the layer.
Methods
ToString
def ToString(self) -> str