Exercise 3: Query in data from the drawing
The drawing file you attached is a map of California with polygons defined for each county. Since the city of Redding is in Shasta County, you will add the Shasta County boundaries to your map. You can query in data based on location, properties, or data. In this case, query by the name of the county, which is stored as object data.
NoteThis exercise uses the BuildMap1.dwg map you created and
modified in the previous exercises.
- In the BuildMap1.dwg file, in Display Manager, click Data Add Drawing Data Query Source Drawing.
- In the Define Query Of Attached Drawings dialog box, under Query Type, click Data.
- In the Data Condition dialog box, select the Object Data option.
- In
the Object Data Fields list, select NAME NoteDo not change the Tables setting.
- Leave Operator set
to = . For Value, enter Shasta.
Define the data condition for the query.
- Click OK in the Data Condition dialog box, and then click OK again to execute the query.
- Click View menu Extents.
The Shasta county boundaries are now displayed in the map, and an Attached Drawing Element layer is displayed in Display Manager.
- Click File menu Save to save your work.
NoteYou may see an alert as
you work through the remainder of the tutorial, warning you that
the association between queried objects in the current and attached
drawings will not be retained once the current drawing file is closed.
This message reminds you to save back any changes you make to the original
drawing file. Since you will not edit the Shasta County drawing
in this tutorial, you can safely ignore the alert.
To continue this tutorial, go to Exercise 4: Use Data Connect.