Friday, November 24, 2006

Display Styles in 2007

So are you having trouble getting your map to display the way you want it do, or want to show your data in a various styles at different zoom levels. With the display manager and style editor you can create a number of different ways to display your map. With the sample I'm using for this posting I connected to a road shp file using data connect. I wanted to display the roads based on the type of road it is, the Interstate with a wide line, the US road and State roads as solid lines and then the local or private roads a different line type depending on the zoom scale that I am displaying. Or in other words when I zoom expents I want to see the major roads only and colored by the type of road it is, then as I zoom in show the local roads as a dotted line then if I zoom in to a 1:500 scale or less all the roads display as a solid line the same width.

The style editor has two parts to it, the top half controls the scale ranges and the bottom half controls the styles for those ranges.



Once you set up the scale ranges you want to use you then create the style for that range. The default is just as it displays when you add the objects to your map either from the data connect or as you draw the AutoCAD objects based on the properties for those objects.



To create a new style you click on the "Add Rule" then select on the "condition" column. This brings up the "Filter" palette that lets you set the condition base on the properties or data value depending on what type of data you are styling.



Once you select the property and the condition then click the "GET" button and AutoCAD MAP will provide a list to select from for the value.
You can create compound conditions by clicking on the "NEW" button then select the operation (and, or, not) then set your next condition.



To set a Label Style for that rule, select the rule then click under the column "Feature Label". This will open up the "Style Label" palette that allows you to select what property or field to use for the value of the label and the text/font color, height etc. Be sure you check the "STYLE" box in the top left otherwise the options are grayed out as the default.



Here are the results of setting styles to a simple centerline shape file that I am using with the Data Connect feature.



The nice thing about using these features is I set everything up with out having to import the shp file and having to use layers to control the colors or line types to display the features, and the features change their display as I change the zoom levels while I am editing or viewing the map. Once you create the scale ranges they are available in the task pane under the "Scale 1: XX" button allowing you to zoom right to that scale and the display rules you set for that scale range.



So happy styling until next time.

No comments: