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__
def __init__(self, variable: str, pattern: str, negated: bool = ...) -> None
Makes a rule.
Properties and fields
Negated
@property
def Negated(self) -> bool
Gets whether the layer has to fail the pattern.
Pattern
@property
def Pattern(self) -> str
Gets the pattern.
Variable
@property
def Variable(self) -> str
Gets the property, upper case.
Methods
ToString
def ToString(self) -> str
Gives the rule as AutoCAD writes it: NAME=="A*".