AutoCAD Map 3D Tutorials > Tutorial: Managing Data From Different Sources > Lesson 4: Importing SDF Files as DWG Layers >
Exercise 3: Use Display Layers to Assign Object Properties
You can create display layers for each drawing layer in your new drawing. In addition, you can create separate display layers for each waterline size. By displaying a single display layer at a time, you can select the various sets of objects and assign the proper colors to them.
NoteThis exercise uses the
map you created with the DWGImportTemplate.dwt template,
with the modifications you made in the previous exercise.
To use display layers to assign object properties
- Create
a display layer for the Parcels layer.
- In Display Manager, click Data Add Drawing Data Query Current Drawing.
- In the Define Query Of Current Drawing dialog box, click Property.
- In the Property Condition dialog box, select Layer and set the Value equal to Parcels.
- Click OK to close each dialog box.
- In Display Manager, select the default display layer name (Current Drawing Element) and change it to Parcels.
- Repeat the procedures in step 1 to create a display layer for Roads.
- Repeat
the procedures in step 1 to create a display layer for Waterlines.
Select the Waterlines layer and name the display layer Waterlines.
- Create
a new display layer for waterlines whose Size property is set to
Large.
- In Display Manager, click Data Add Drawing Data Query Current Drawing.
- In the Define Query Of Current Drawing dialog box, click Data.
- In the Data Condition dialog box, select Object Data.
- For Tables, select Waterlines.
- Select Size.
- For Value, enter Large.
- Click OK to close each dialog box.
- In Display Manager, select the default display layer name (Current Drawing Element) and change it to Large.
- Repeat step 4 for the remaining sizes (Medium and Small).
- Change
the color of the Large waterline objects.
- Turn off all the display layers except for Large.
- Click View menu Extents.
- Drag a selection box around all the objects that are displayed.
- Right-click one of the selected objects and click Properties.
- In the Properties window, change the Color from ByLayer to Red.
- Press Esc to deselect the objects.
- Repeat step 6 for the Medium and Small layers, making Medium objects green and Small objects blue.
- Turn
on all the display elements to see the results.
While AutoCAD users will not be able to see the display layers (because AutoCAD doesn’t have Display Manager), the layer and object properties are stored with the AutoCAD layers and objects and will be visible.