To Alter Drawing Objects Using an Expression

Use expressionswhen you want AutoCAD Map 3D to evaluate drawing data from different sources, or to evaluate data that is different for each object, such as object properties, block attributes, or object data attached to the object.

To define an expression

  1. In Map Explorer, under Current Drawing, right-click Current Query, and then click Define.
  2. In the Define Query Of Attached Drawings dialog box, load or create a query.
  3. Under Options, click Alter Properties.
  4. In the Set Property Alterations dialog box, select the property to alter.

    For example, to change the color of queried objects, select Color.

  5. In the Expression area, enter an expression.
  6. Click Add to add the property alteration to the Current Property Alterations list.
  7. When you finish defining the property alteration, click OK.
  8. Make sure Alter Properties is selected when you execute the query.
  9. Under Query Mode, select Draw. You cannot use property alteration in Preview mode or Report mode.
  10. Click Execute Query.