Altering queried objects

AutoCAD Map 3D ActiveX

Altering queried objects

If property alteration is defined and enabled for a query, certain properties of queried objects are altered when the query result is displayed in the project drawing. (There is no effect on source drawings unless you deliberately save the objects back.) Property alteration is governed by a query's property alteration definition, an Alterlines collection, which can contain any number of simple alterations (AlterLine objects), hatch alterations (HatchDef objects), or text alterations (TextDef objects). To alter queried objects, first define AlterLine, HatchDef, or TextDef objects, and then add them to the AlterLines collection of the current query. For step-by-step information about altering queried objects, click .

Conditional property alterations

Note that you can specify conditional property alterations—for example, to color a queried object green if its width is in the range 0 to 1, or color it blue otherwise. First define a range table by building a RangeTable collection, and then use a range table expression instead of an explicit value or expression when you set the Value parameter of a property alteration (or the TextValue parameter of a text alteration, or the Pattern property of a Hatch alteration). For step-by-step information about using range tables, click .