Create Line Stylesheet Theme

1.Create a new Adobe Illustrator document.

2.Import fcstreets.mif from the Tutorial Data folder.

3.Open the Adobe Illustrator Graphic Styles panel.

4.Use the Adobe Illustrator Line Segment Tool to create a graphic style by drawing a line on the page. Assign the line a stroke weight of 2 pt, a stroke color of red, and a fill of none.

5.Open the Adobe Appearance panel via Windows > Appearance. From the Appearance panel option menu choose Add New Stroke. Set the color to yellow and the stroke weight to 1.6. Make sure the newly created stroke is above the 2 pt red stroke in the Appearance panel.

appearancepanel

6.Use the Selection Tool to drag this line into the Graphic Styles panel. In the Graphic Styles panel, double-click the style to open the Graphic Style Options dialog box. Rename the style to Primary Road.

theme_stylesheet_line

Delete the line on the artboard (the style will remain available inside the Graphic Styles panel).

7. In the Graphic Styles panel option menu, click Open Graphic Style Library > MAP Graphic Styles > MAP - Line Styles. If using a non-English version of Illustrator, choose Other Library > Open Graphic Style Library and browse to the MAPublisher supplied file MAP - Line Styles.ai from \Helpful Styles & Symbols\Graphic Styles folder (see Helpful Styles & Symbols).

8. From the MAP - Line Styles panel, add the graphic styles MAP Line 12 and MAP Line 16 to the document's Graphic Style panel.

These new styles will now be available for use in the current document.

9.Rename MAP Line 12 to Local Road and MAP Line 16 to Secondary Road. Close the MAP - Line Styles panel.

10. Open the MAP Themes panel and in the panel option menu, click New MAP Stylesheet.

11. In the New MAP Theme dialog box, type Road Types into the Theme name field, choose the Stylesheet Theme type, choose Line from the Feature type drop-down list, and click OK.

12. Double-click the Road Types stylesheet. Click the Click to specify layers hyperlink and click the fcstreets_line layer check box in the Selected column, then click OK.

13. In the Edit Stylesheet Theme dialog box, click the Add button three times to add three rules. Rename Rule 1 to Primary Road, Rule 2 to Secondary Road, and Rule 3 to Local Road.

14. In the Rule Expression tab, click the Apply to artwork that satisfies this expression option. For the Primary Road rule select "Number" from the pull down menu displaying attributes, and choose the unique attribute value "A25". In the Visual Properties tab, click the Style check box and choose the Primary Road style.

15. In the Rule Expression tab, click the Apply to artwork that satisfies this expression option. For the Secondary Road rule select "Number" from the pull down menu displaying attributes, and choose the unique attribute value "A31". In the Visual Properties tab, click the Style check box and choose the Secondary Road style.

16. In the Rule Expression tab, click the Apply to artwork that satisfies this expression option. For the Local Road rule select "Number" from the pull down menu displaying attributes, and choose the unique attribute value "A41". In the Visual Properties tab, click the Style check box and choose the Local Road style.

editstylesheettheme3

17. When all the rules are defined with a style and expression, click Apply. (If a MAP Theme warning appears, just click the close button.)

The primary, secondary and local roads are styled accordingly.

lines_style_result

18. Save this document as MyRoads.ai in the Tutorial Data folder.

19. Close the document.

Copyright © 1995-2020 Avenza Systems. All rights reserved.

 

Last updated: 12/11/2020