Dynamic text is text placed on a map layout that changes based on the current properties of the map document, data frame, and Data Driven Page. Create dynamic text for such things as the following:
- A user name
- The date a map document was saved
- The file path for the map document
- The page numbers and names that update automatically for each page in a series of Data Driven Pages
When you insert a piece of dynamic text, it automatically displays the current value of its respective property. When that property is updated, the dynamic text automatically updates. Dynamic text works through the use of tags, like HTML. This allows you to combine both dynamic and static text in a single text element and apply the available formatting options to customize the resulting text display.
There are seven types of dynamic text:
- Computer (<dyn type ="computer"/>)—Returns the name of the machine currently viewing the map
- User (<dyn type ="user"/>)—Returns the name of the current login
- Date (<dyn type ="date"/>)—Returns the current date and has a default format of MM/dd/yyyy (example: 01/01/1001)
- Time (<dyn type ="time"/>)—Returns the current time and has a default format of hh:mm tt (example: 01:17 PM)
- Document (<dyn type ="document"/>)—Returns property values of the map document
- Data frame (<dyn type ="dataframe"/>)—Returns property values of the specified data frame
- Page (<dyn type ="page"/>)—Returns property values of the map's Data Driven Pages, if enabled
- Learn more about working with dynamic text
- Learn more about using dynamic text with Data Driven Pages