Table of Contents

Constructor CadLayerRule

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

CadLayerRule(string, string, bool)

Makes a rule.

public CadLayerRule(string variable, string pattern, bool negated = false)

Parameters

variable string

The property: NAME, COLOR, LINETYPE, LINEWEIGHT, TRANSPARENCY, PLOTSTYLE, PLOTTABLE, NEWVPFROZEN, DESCRIPTION, OFF, FROZEN, LOCKED, VPFROZEN, USED, UNRECONCILED or VPOVERRIDES.

pattern string

The pattern, with the wild cards of AutoCAD: * any run of letters, ? one letter, [AB] one of those, a leading ~ anything the rest does not match.

negated bool

Whether the layer has to fail the pattern (!=).