Adding a feature layer as dynamic text using an expression

Feature layer dynamic text can be added to the map sheet using a VBScript expression via the Expression Parser dialog box.

Pasos:
  1. Start ArcMap.
    SugerenciaSugerencia:

    If the ArcMap - Getting Started dialog box appears, you can open a new or existing map document. You can also check the Do not show this dialog box in the future check box and click Open.

  2. On the main menu, click Customize > Toolbars > MPS Atlas.
  3. Click the Add Dynamic Text button Add Dynamic Text on the MPS Atlas toolbar.

    A crosshair with a letter A appears.

  4. Click anywhere in the map sheet layout.

    A piece of dynamic text is inserted on the page.

  5. Double-click the dynamic text.

    The Dynamic Text Properties dialog box appears.

  6. Click the Dynamic Text tab if necessary.
  7. Click the Dynamic Text drop-down arrow and choose Feature Layer.
  8. Click Insert.

    The Feature Layer Attributes text appears in the text box.

  9. Click the dynamic text element in the text field.

    The Feature Layer Dynamic Text Properties dialog box appears.

    Feature Layer Dynamic Text Properties dialog box
  10. Click the Data Frame drop-down arrow and choose the data frame that contains the layer with the attributes you want to use.
  11. Click the Layer drop-down arrow and choose the layer you want to use.
  12. Click the Return features that and the drop-down arrows and choose options to return the features you want.
  13. Click OK.
  14. Click the Expression option in the Text String area.
  15. Click Edit Script.

    The Expression Parser dialog box appears.

    Feature Layer Dynamic Text Expression Parser dialog box
  16. In the Expression area, click to right of the Generate = expression.
  17. Double click a field name in the Parameter list.

    In the Expression area, the field name appears to the right of Generate =: Generate = [NAME].

    SugerenciaSugerencia:

    Double click a field name without an _arr suffix.

  18. Click Verify.

    The Output area lists Function evaluated successfully.

  19. Click OK to close the Expression Parser dialog box.
  20. Click OK to close the Feature Layer Dynamic Text Properties dialog box.
  21. Click OK to close the Dynamic Text Properties dialog box.

    The feature layer dynamic text displays in the page layout.

  22. NotaNota:

    If you change the layer or data frame, the expression will be cleared. A new layer will require a new set of function parameters.


9/30/2010