Use queries to retrieve the drawing objects you need from attached drawings.
To create a query to retrieve information from attached drawings
- Open a drawing.
- In Map Explorer, under Current Drawing, right-click the Drawings folder. Click Define/ModifyDrawing Set.
- Make sure that the drawings you want to query are attached and active.
- In Map Explorer, under Current Drawing, right-click Current Query, and then click Define.
- To zoom to the extents of all active drawings, click Zoom Ext in the Define Query Of Attached Drawings dialog box.
- In the Define Query dialog box, select a Query Type to define a condition for your query based on:
- Location— such as inside a window you define.
- Property— such as color, layer, or elevation.
- Data— information stored with the object
- SQL— information stored in external databases
- To add conditions, choose And or Or, and choose a query type.
To group conditions, select the first and last condition in the group. Click Group. Conditions inside the parentheses are evaluated first.
- Select a Query Mode to specify how to view the objects.
- If you plan to use the query again, save the query.
- Click Execute Query.