Table of Contents

Class CadQuickSelect

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

Quick Select (QSELECT), as AutoCAD's: the objects of a space, or of the selection, of one type or of every type (Multiple), whose property compares with a value as the operator says, included in a new selection or excluded from it, appended to the selection or in its place. The properties are the rows of the Properties panel (CadProperties), their values compared as the panel writes them: a line 500 long has the Length 500.0000, and Length > 400 takes it.

public sealed class CadQuickSelect
Inheritance
CadQuickSelect
Inherited Members

Remarks

Of a plan of 312 lines on layer WALLS among others, Line, Layer, = Equals, WALLS selects the 312: "312 item(s) selected."

Constructors

CadQuickSelect(CadDocument, CadSpace, IEnumerable<string>)

Makes a Quick Select over the objects of a space, or of some of them.

Fields

Multiple

The object type that stands for every type, as AutoCAD's Multiple.

Properties

Count

Gets how many objects are in scope.

ObjectTypes

Gets the types of the objects in scope as the Properties panel names them (Line, Circle, MText), in ordinal order, after Multiple where there are any.

Space

Gets the space the objects are of.

Methods

Apply(IReadOnlyList<string>, bool)

Applies a match to the document's selection, as OK does: appended to it, or in its place; and says "N item(s) selected." of the selection made.

IsListed(string)

Gets whether Value lists the values of a property rather than taking one typed: Color, Layer, Linetype and Lineweight.

Match(string, string, CadQuickSelectOperator, string, bool, Tolerance)

Gets the objects that match: those of the type whose property compares with the value as the operator says, or with include false those of the type that do not; in ordinal order of their handles.

PropertiesOf(string)

Gets the properties of a type, as the Properties panel lists them for an object of it: Color, Layer, Linetype, Linetype scale and Lineweight, then those of its kind (Start X to Angle for a line); the General ones alone for Multiple.

ValuesOf(string, string)

Gets the values in use of a property that Value offers as a list (Color, Layer, Linetype, Lineweight) among the objects of a type in scope, in ordinal order, letters of either case together; empty for one whose value is typed.