Creating a dynamic scale bar (Aviation)

复杂程度: 初级 数据要求: 随软件安装 数据路径: C:\Program Files\ArcGIS\Desktop10.2\TemplateData

The graphic table element has the capabilities for creating dynamic surround elements such as a scale bar. The dynamic scale bar updates based on the data frame's visual extent whether the scale bar is used in an MPS-Atlas map series or within a single map document.

Adding cartographic data

Before you can create the scale bar, you need to add the data to the map. In this walk-through, you are using the U.S. States (Generalized) feature class, which is in a template database that is included with the ArcGIS for Desktop installation.

步骤:
  1. Start ArcMap.
  2. 单击添加数据按钮 添加数据

    将打开添加数据 对话框。

  3. Browse to C:\Program Files\ArcGIS\Desktop10.2\TemplateData.
    注注:

    The data used for this example is located at C:\Program Files\ArcGIS\Desktop10.2\TemplateData\TemplateData.gdb by default for a standard installation.

  4. Add the States feature class to the data frame.

Creating the scale bar for the map series

In this part of the workflow, you are going to create a map series and set the California map sheet as the current map sheet.

步骤:
  1. Follow the steps described in Creating a map series to generate a map series. Use the States feature layer when selecting your area of interest.

    Your area of interest should look like this:

    Area of interest from a feature layer
  2. Once the map series is created, set California as the current map sheet.

Creating the table

In this part of the workflow, you are going to create the graphic table element that will serve as the base for the scale bar.

步骤:
  1. On the main menu, click Insert > Graphic Table Element.

    The New Table dialog box appears.

    Select Interactive format
  2. Click the Interactive option in the Available formats list.
  3. Click OK.

    A new table is created.

    New table

Defining the Unit Scaling tab

In this part of the workflow, you are going to customize the scale of the table so it is based on the Layers data frame.

步骤:
  1. Click to select the new table, if necessary.
  2. Right-click in the table and click Properties.

    The Table Properties dialog box appears.

    Table Properties dialog box
  3. Click the Unit Scaling tab.

    The Unit Scaling tab appears.

    Unit Scaling tab on the Table Properties dialog box
  4. Check the Enable Unit Scaling check box.
  5. Click the Using Frame drop-down arrow and choose Layers.

Defining table format

Graphic table elements have several formatting options. You can manually set table width and height, allow the element to resize itself to fit data, or set both dimensions to a fixed size. You have control over width and height unit types.

In this section, you are going to use the Interactive Table Design dialog box to design your table.

步骤:
  1. Click the Table Format tab.

    The Table Format tab appears.

  2. Click the Width drop-down arrow and choose Table Design.
  3. Click the Units drop-down arrow and choose Kilometers.
  4. Click the Height drop-down arrow and choose Table Design.
  5. Click the Units drop-down arrow and choose Millimeters.
  6. Click Table Design.

    The Interactive Table Design dialog box appears.

  7. In the Table Layout area, right-click in a table cell and click Add > Rows.
    Add rows

    The Add Rows dialog box appears.

    Add Rows dialog box
  8. If necessary, double-click in the Count text box and type 1.
  9. Click OK.

    One row is added to the table.

  10. Right-click in the table cell and click Add > Columns.
    Add columns

    The Add Columns dialog box appears.

    Add Columns dialog box
  11. Double-click in the Count text box and type 13.
  12. Click OK.

    Thirteen columns are added to the table.

  13. In the Table Layout area, select the first 10 cells in row 2 of the table.
    Select first 10 cells in row 2.
  14. Right-click in one of the selected cells and click Properties.

    The Properties dialog box appears.

  15. In the Dimensions area, choose Points from the drop-down list.
  16. In the Dimensions area, type 100 in the Width text box.
  17. In the Dimensions area, type 1.5 in the Height text box.

    The Properties dialog box should look like this:

    The Properties dialog box with 100 by 1.5 points dimensions
  18. Click OK.

    The Interactive Table Design dialog box appears.

  19. Select the last four cells in row 2 of the table.
  20. Right-click in one of the selected cells and click Properties.

    The Properties dialog box appears.

  21. In the Dimensions area, double-click in the Width text box and type 400.

    Setting the width to 400 calculates each of the divisions to 400 kilometers.

  22. Click OK.

    The table appears in the following format:

    Formatted table

Adding centerlines to divisions and subdivisions

In this part of the workflow, you are going to format the graphic table element so lines appear for the divisions and subdivisions within the scale bar.

步骤:
  1. Right-click the cell to which you want to add a centerline (for example, cell 2,B) and click Add Element > Line.
    Add Element Line

    The New line element dialog box appears.

    New line element dialog box
  2. Click Change Symbol.

    The Symbol Selector dialog box appears.

    Symbol Selector dialog box
  3. Click Edit Symbol.

    The Symbol Property Editor dialog box appears.

    Symbol Property Editor dialog box
  4. Click the Type drop-down arrow and choose Cartographic Line Symbol.
  5. Click the Units drop-down arrow and choose Points.
  6. Type 1.0100 in the Width text box.
  7. Click the Color drop-down arrow and choose Black.
  8. In the Line Caps area, choose Butt.
  9. In the Line Joins area, choose Miter.
  10. Click OK.

    The Symbol Selector dialog box appears.

  11. Click OK.

    The New line element dialog box appears.

  12. Click the Alignment tab.
  13. Click the Horizontal drop-down arrow and choose Center.
  14. Click the Vertical drop-down arrow and choose Center.
  15. Click OK.
  16. Repeat steps 1 through 15 for alternating cells.

    The table appears in the following format:

    Formatted table

Editing the scale bar lines

In this part of the workflow, you are going to modify the line widths so the graphic table element looks more like a conventional scale bar.

步骤:
  1. In the Table Layout area, select all the cells in row 1 of the table.
  2. Right-click in one of the selected cells and click Properties.

    The Properties dialog box appears.

  3. Click the Format tab.
  4. In the Dimensions area, click the units drop-down arrow and choose Millimeters for both the width and height.
  5. Type 5 in the Height text box.
  6. Click the Border tab.

    The Border tab appears.

  7. In the Border area, click the symbol options to deselect all the vertical and top horizontal lines.
    注注:

    Be sure to keep the bottom line, because this will become the top line of the scale bar.

    The Properties dialog box displaying the border tab. Vertical and top horizontal lines are deselected.
  8. Click OK.

    The Interactive Table Design dialog box appears.

    The table appears in the following format:

    Formatted table

Labeling divisions

In this part of the workflow, you are going to label divisions on the scale bar by adding text elements.

步骤:
  1. In the Table Layout area, click to select cell 1,A of the table.
  2. In the Elements pane, right-click cell 1,A and click Add Element > Text.

    The New text element dialog box appears.

  3. Type 100 in the text box.
  4. Click the symbol to left-align the text Align Left.
  5. Check the Symbol fixed when scaled check box.
  6. Click Change Symbol.

    The Symbol Selector dialog box appears.

  7. Click Edit Symbol.

    The Editor dialog box appears.

    Editor dialog box
  8. Click the Units drop-down arrow and choose Points, if necessary.
  9. Click the Font drop-down arrow and choose Arial.
  10. Click the Size drop-down arrow and choose 7.
  11. Type -5.5 in the X Offset text box.
    注注:

    Type -1.5 in the X Offset text box for 0 offset.

  12. Click OK.

    The Symbol Selector dialog box appears.

  13. Click OK.

    The New text element dialog box appears.

  14. Click the Alignment tab.

    The Alignment tab appears.

    Alignment tab
  15. Click the Horizontal drop-down arrow and choose Left.
  16. Click the Vertical drop-down arrow and choose Bottom.
  17. Click OK.

    The Interactive Table Design dialog box appears with the table in the following format:

    Formatted table
  18. Repeat steps 1 through 17 for cells 1,K (type 0 in the text box), 1,L (type 100 in the text box), 1,M (type 200 in the text box), and 1,N (type 300 in the text box).

    The resulting scale bar displays in the following format in the map layout:

    Formatted table

Labeling the last division and unit

Now that the beginning and interim divisions have been labeled on the scale bar, you can add text for the last division and the units of measurement. In this part of the workflow, you are going to add a text element for both.

步骤:
  1. Click to select cell 1N in the table.
  2. Right-click 1N on the Elements pane and click Add Element > Text.

    The New text element dialog box appears.

  3. Type 400 Kilometers in the text box.
  4. Check the Symbol fixed when scaled check box.
  5. Click the symbol to right-align the text Align Right.
  6. Click Change Symbol.

    The Symbol Selector dialog box appears.

  7. Click Edit Symbol.

    The Editor dialog box appears.

  8. Click the Units drop-down arrow and choose Points, if necessary.
  9. Click the Font drop-down arrow and choose Arial.
  10. Click the Size drop-down arrow and choose 7.
  11. Type 42 in the X Offset text box.
  12. Click OK.

    The Symbol Selector dialog box appears.

  13. Click OK.

    The New text element dialog box appears.

  14. Click the Alignment tab.
  15. Click the Horizontal drop-down arrow and choose Right.
  16. Click the Vertical drop-down arrow and choose Bottom.
  17. Click OK.

    The Interactive Table Design dialog box appears with the table in the following format:

    Formatted table
  18. Click OK to close the Interactive Table Design dialog box.
  19. Click OK to close the Table Properties dialog box.
  20. Switch between map sheets in the map series by right-clicking a map sheet and choosing Set Current Map Sheet to see the scale bar change dynamically.
4/27/2014