Table of Contents

Class CadFilterLine

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

A line of an object selection filter: what it tests, how, and the value it wants, as "Layer = WALLS", "Arc Radius >= 15.0000" or "Line End X >= 100.0000 Y * 0.0000 Z * 0.0000"; or the begin or end of a group of lines.

public sealed class CadFilterLine
Inheritance
CadFilterLine
Inherited Members

Constructors

CadFilterLine(CadFilterProperty, string, params string[])

Makes a line.

Properties

ColorIndex

Gets the colour index a colour line wants; 0 for the other lines.

IsGroupBegin

Gets whether the line begins a group.

IsGroupEnd

Gets whether the line ends a group.

Name

Gets the name the Select Filter list gives the property: "Arc Radius", "Xdata ID", "** Begin AND".

Numbers

Gets the numbers a colour, a number, an angle (degrees) or a point line wants; none for the other lines.

Operators

Gets the operators of the line: one for a name, a kind, a colour or a number, three (X, Y, Z) for a point, none for a group.

Property

Gets what the line tests.

Text

Gets the line as the filter list shows it: the property padded to 21 characters, then the operator and the value, as "Layer = WALLS", "Arc Radius >= 15.0000" or "Line End X >= 100.0000 Y * 0.0000 Z * 0.0000"; a group's line is its name.

Value

Gets the value it wants: a name as typed, a colour written as AutoCAD's list writes it ("1 - Red", "256 - By Layer"), a number to four places ("15.0000"), a point as "x,y,z"; empty for the begin or end of a group.

Methods

ColorWords(int)

Writes a colour index as AutoCAD's filter list writes it: "1 - Red", "8", "256 - By Layer", "0 - By Block".

IsGroup(CadFilterProperty)

Gets whether a property begins or ends a group.

IsPoint(CadFilterProperty)

Gets whether a property is a point, tested on X, Y and Z each with its own operator.

NameOf(CadFilterProperty)

Gets the name the Select Filter list gives a property: "Arc Radius", "Xdata ID", "** Begin AND".

OperatorsOf(CadFilterProperty)

Gets the operators a number or a point may be tested with: = != < <= > >= and, for a coordinate, *.

Passes(DxfEntity)

Gets whether an entity passes the line; the begin or end of a group is no test.

TakesOperators(CadFilterProperty)

Gets whether a property is tested with operators (a colour, a number, an angle or a point); a name and a kind are tested with "=" alone.