Table of Contents

CadLayerRule

from OpenCAD2D import CadLayerRule

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

One test of a property filter, as AutoCAD's RelationalExpression: a layer property and the pattern its text has to match.

Constructors

__init__

.NET

def __init__(self, variable: str, pattern: str, negated: bool = ...) -> None

Makes a rule.

Properties and fields

Negated

.NET

@property
def Negated(self) -> bool

Gets whether the layer has to fail the pattern.

Pattern

.NET

@property
def Pattern(self) -> str

Gets the pattern.

Variable

.NET

@property
def Variable(self) -> str

Gets the property, upper case.

Methods

ToString

.NET

def ToString(self) -> str

Gives the rule as AutoCAD writes it: NAME=="A*".