About queries

AutoCAD Map 3D ActiveX

Queries

A query is composed of query branch and query leaf objects. Each leaf defines a single query condition, and each branch defines a condition grouping. A query has a main branch and one or more leaves, and may contain additional sub-branches and leaves. Branch and leaf objects are related by properties that specify their logical operators. The following figure illustrates this structure for a simple query.

The query selects drawing objects inside a window boundary, and that are either on the STREAM layer or bodies of water with an average depth of less than 10 feet. For step-by-step information about creating queries, click .

After defining a query, if you change leaves using the QueryLeaf.Value property, call Query.Define again before executing the query. For step-by-step information about modifying queries, click .