Arcgis dynamic text

Dynamic text is text on a map layout that changes based on the current properties of the project, map frame, map, and so on. You can add dynamic text for things such as the following:. 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. If a dynamic text value does not update automatically, press F5 to refresh the layout.

The following is an example of a dynamic text tag for the name of the project:. This is what you see in the Text View box in the Element pane. On the page layout, you see the name of the current project. Table dynamic text is different from other dynamic text because table data can be filtered. You can choose to display the property for all the data in a table, only the data visible on the layout, or only a custom subset of the data.

arcgis dynamic text

Since table data can be filtered, there are additional parameters for table dynamic text. Learn more about working with dynamic text. Dynamic text is only supported on a layout or report. Feedback on this topic? Skip To Content.

Back to Top. You can add dynamic text for things such as the following: A user name The date a project was last saved The file path for the project The average value of a field in a map The metadata of a map on your layout When you insert a piece of dynamic text, it automatically displays the current value of its respective property. Note: If a dynamic text value does not update automatically, press F5 to refresh the layout.

Note: Dynamic text is only supported on a layout or report.Dynamic text is text placed on a map layout that changes dynamically based on the current properties of the map document, data frame, and Data Driven Pages.

Dynamic text works through the use of tags, like HTML. Here is an example of a dynamic text tag for the title of a map document:. The actual text you will see on the map layout would be the actual map title defined in Map Document Properties. Dynamic text can be added to a map layout by either adding one of the text elements listed under Insert on the main menu or editing an existing text element by manually adding a dynamic tag. Some dynamic text can be quite simple and be used by itself, while some may be quite complex.

In some cases, you might want to combine dynamic text with static text. For example, here is dynamic text showing the last date the map was saved:. A number of preformatted dynamic text types can be added directly to the map layout. Those listed are only a subset of dynamic text types. You can access other dynamic text types by editing an existing text element.

See below for a complete list of dynamic text types. The following dynamic text elements can be added directly from the main menu:. If the title property is blank at the time a title element is inserted, you will be prompted to give your map a title. If the title has not been set at the time a map is saved, the name of the map document file.

See below for more details on date formatting tags. This is a system property specifying the current time example: AM.

See below for more details on time formatting tags. This is the user name of the user who has opened the map document. This is the author as specified on the Map Document Properties dialog box. If there is no value in this property, the result will be blank. This is the value stored in the map document for the date and time the map was saved.

The value is updated automatically whenever the map is saved. You can use each dynamic tag separately if you want. For example, you might only want to display the date the map was saved. This is the name of the map document file. This is the full path to the map document file. This provides a way for you to replace the ArcGIS for Server or third-party tiled service layer attribution text that is displayed in the lower right corner of the data frame with a dynamic text element.

This way, you can position these attributions where you want them on the page. You can then also change text symbology as you see fit. If you have multiple service layers in your map document, you will see an entry for each unique service layer.Map marginalia can include such items as legends, a title, grids and graticules, scale bars, scale text, north arrow, and spatial reference information along with other graphics and text items.

For more information, see Map elements. The example above shows a topographic map book for Arenac County, Michigan. This page series can be easily created by any ArcMap user with an Internet connection. No other data is needed to re-create this map series. You can easily re-create this reference series using Data Driven Pages, the geoprocessing tools available from the Data Driven Pages toolsetdata frame properties, and dynamic text.

arcgis dynamic text

The example map book above includes the following map marginalia elements: map title, page numbers, labels for neighboring pages, current page name, scale bars, spatial reference text, north arrow, scale text, and the date the map was last saved. Though many of these items are dynamic and change as the map changes, such as scale bars and the north arrow, adding these elements to a layout works the same way as with a one-off or static map and does not require any special instructions to add to a layout being used for a map book.

However, some elements, such as the page name or a label for a neighboring adjacent page, are used specifically for a map book and require the use of dynamic text.

The image below identifies with a red arrow some of the dynamic text elements in the sample map:. The steps below outline the procedure needed to add the following dynamic text elements:.

Page number Current page name Spatial reference text for the current page Date map was saved. For instructions on how to add dynamic text for adjacent pages in the map book, see How to add dynamic text for neighbor labels. The steps below assume that you have completed the steps outlined in the following topics:. Starting the map book Creating grid index features Modifying the grid index features layer Enabling Data Driven Pages Creating a locator map for a map book.

If you do not have the toolbar open, see Adding the Data Driven Pages toolbar. The page name text element is added to the center of your map. It uses the default text symbol. To change the symbol, double-click the element and change the properties as you see fit.

How to use Text Boxes in ArcMap to make Clean looking maps.

A text element showing the current page number along with the total number of pages is added to the center of the map. A text element showing spatial reference information for the current page is added to the center of the map.

It also includes information that you may not want to show on your map. To remove unwanted details, you need to edit the text. You have now placed the dynamic text elements needed for the map book. The final step is Exporting your map book.

Using dynamic text with Data Driven Pages

Arc GIS for Desktop. The image below identifies with a red arrow some of the dynamic text elements in the sample map: The steps below outline the procedure needed to add the following dynamic text elements: Page number Current page name Spatial reference text for the current page Date map was saved For instructions on how to add dynamic text for adjacent pages in the map book, see How to add dynamic text for neighbor labels.

Drag this element to the position on the layout that you want. Click OK to close all dialog boxes.The instructions provided describe how to insert dynamic text based on values from a feature's attribute table for Data Driven Pages.

In the map document, create Data Driven Pages and verify that the index layer contains the attribute values for the dynamic text. Switch to the Layout View. Open the index layer's attribute table. Make note of the field name for the values to be dynamically displayed. Right-click the dynamic text inserted on the Layout View and select Properties from the context menu. The dynamic text displays the values from the selected field in the index layer's attribute table, based on the Data Driven Page.

For example: Page One Page Two. Technical Support. New and Improved Support App! Learn more. Close and Don't Remind. Back to results. Print Share. Content feedback is currently offline for maintenance. Please try again in a few minutes.

Is This Content Helpful? Back to top. How To: Insert dynamic text based on values from a feature's attribute table for Data Driven Pages Summary The instructions provided describe how to insert dynamic text based on values from a feature's attribute table for Data Driven Pages.

Procedure In the map document, create Data Driven Pages and verify that the index layer contains the attribute values for the dynamic text.

Modify dynamic text

Page One Page Two. How can we make this better? Please provide as much detail as possible. Contact our Support Team. Request Case Start Chat. Translation Feedback How can we make this translation better?

Get notified about latest updates to this technical article? Yes No. Do you want to Unsubscribe? Questions or issues with the site?Dynamic text is text on a layout that changes based on current properties of the project, layout, map frame, and so on. When that property is updated, the text automatically updates. Dynamic text works through the use of tags, similar to HTML.

This allows you to combine both dynamic and static text in a single text element. There are several types of dynamic text that can be added to a layout. A gallery opens, showing the dynamic text tags. Note: Using the gallery is the most common way to add dynamic text, but a dynamic text element can also be added by typing the tag directly.

Once dynamic text has been added to your layout, you can modify the dynamic text. Table dynamic text is the one type of dynamic text that has a slightly different insert experience. Table dynamic text returns attribute values or statistics from a specified layer or stand-alone table in a map frame. Since there can be multiple map frames, layers, and stand-alone tables on a layout, table dynamic text requires you to select the data you want.

arcgis dynamic text

Table dynamic text can also be filtered. You can choose to use all the data in a table or a subset. This is done by setting the Query parameter. The following are the four query options:. All rows —Uses every row in the table.

Visible rows —Uses all the rows for data visible in the map extent. This is not an option for stand-alone tables, because they are not displayed on the map. Custom query —Uses a query created by the user using the query builder.

This query builder expression is applied to all rows in the table and can't be limited to rows visible in the map extent. Map series rows —Uses only the rows that intersect the current map series feature. This option is only available when a map series is enabled and does not apply to stand-alone tables.

Additional parameters can also be set for the Table Attribute and Table Statistic groups within table dynamic text. Choosing a tag from this gallery opens the corresponding insert dialog box.

Value returns the value or values from one or more records in a layer or stand-alone table. The map frame containing the layer or stand-alone table to display. The set of data to display: All rowsVisible rowsCustom queryor Map series rows. The characters to separate each value, by default a single space. The number of decimal places to display. The default is 2.

Thousands separator. Optional Arcade expression to control the precise display of values. Note: The Decimal places and Thousands separator controls only appear when a numeric field is selected.

The following are examples of Arcade expressions that can be used with Value :. Concatenate multiple fields. In this example, three fields are used to create a date. Avoid displaying null values. For this expression to work properly, there must not be a delimiter set. There are 14 statistics that can be calculated on a field as follows: Count —Returns the number of nonnull rows Null Count —Returns the number of null rows Minimum —Returns the lowest value Maximum —Returns the highest value Mean —Returns the average value Median —Returns the middle value Range —Returns the difference between the highest and lowest values Sum —Returns the total of all values added together Standard Deviation —Returns the standard deviation of values, a measure of data variation Kurtosis —Returns the kurtosis of values, a measure of the heaviness of distribution tails Skewness —Returns the skewness of values, a measure of distribution Lower Quartile —Returns the value that 25 percent of ordered data values are less than Upper Quartile —Returns the value that 75 percent of ordered data values are greater than Variance —Returns the variance of the values, a measure of dispersion around the standard deviation.Having dynamic text is an important part of authoring a successful series of Data Driven Pages.

Using dynamic text allows important information on the page layout to change dynamically as you go from one page to another. This information includes text for page titles, page numbers, labels for neighboring pages a neighboring page is one that is geographically adjacent to the current pageand other index layer attributes.

You can access Data Driven Pages dynamic text elements directly from Insert on the main menu or from the pull-down list on the Data Driven Pages toolbar.

Each page in the map series needs a name, and the names are taken from this field. As Data Driven Pages iterates through the features in the index layer and each page is defined, the attribute value for the chosen name field is used as the page name. Data Driven Page Name. This corresponds to the current value of the attribute field set as the name field in the Setup Data Driven Pages dialog box.

You can add a data-driven-page name to your layout from Insert on the main menu or from the pull-down list on the Data Driven Pages toolbar. Data Driven Pages allows you to define a page number. The page number can be based on field values of the index layer. These values can be alphanumeric. You can also use dynamic text to display the total count of pages with the page, or index, number for the current page.

For example, "Page 3 of 10". Data Driven Page Number. This dynamic text element, if applicable, corresponds to the current value of the attribute field set as the Data Driven Page Number on the Setup Data Driven Pages dialog box. Otherwise, the pages are numbered in increments of one, starting with the value set as Starting Page Number. Data Driven Page with Count. This uses the index value of the current page along with the total number of pages. For example, you may have 10 Data Driven Pages where the starting page number is set to 3.

The result for this tag for the first page would be Page 1 of You can add these dynamic text elements to your layout from Insert on the main menu or from the pull-down list on the Data Driven Pages toolbar. Often, you will want to include dynamic text to show attribute values for a particular page.

All the attribute values of the Data Driven Pages index layer are available for dynamic display. If you wish to create dynamic text elements based on a combination of the contents of multiple index layer fields and your own text, use the layer's display expression.

Data Driven Page Attribute. This corresponds to the current value of a selected attribute of the index layer for the given data driven page. This includes fields joined to the index layer. Data Driven Page Display Expression. This corresponds to the Display Expression set in the Display tab of the Layer Properties dialog box. Using the display expression you can create a more complex dynamic text element by combining the contents of multiple fields with your own text.

Choose Data Driven Page Attribute. Choose the attribute you want to use from the Index layer field drop-down list and click OK. If you are creating a strip map and use the Strip Map Index Features geoprocessing tool to create the index layer, the layer has precalculated fields for left-right and top-bottom labels.Dynamic text is text on a layout that changes based on current properties of the project, layout, map frame, and so on.

When that property is updated, the text automatically updates. Dynamic text works through the use of tags, similar to HTML. This allows you to combine both dynamic and static text in a single text element. Once dynamic text has been added to your layout it can be modified in the Element pane. If you convert a text element containing a dynamic text tag to a graphic, the tag is replaced with its current value, which is the text currently being displayed on the page.

Dynamic text can be viewed and modified using Tag View or Text View. Tag View represents each dynamic text tag as a clickable button, with any static text displayed in the usual text format.

Clicking the button opens a window allowing you to edit only that tag. Text View shows the full dynamic text tags together with any static text. Spellcheck is not available in Text View for dynamic text, since the tags would always be considered misspelled. Switch to Tag View to check the spelling of the static text. To modify a dynamic text element, do the following:. Table dynamic text is the one type of dynamic text that has a slightly different modifying experience.

Table attribute and table statistic dynamic text return properties from a specified layer or stand-alone table in a map frame. As such, there are editable parameters not found in other dynamic text types.

Because of the number of properties that can be changed, it is recommended that you only edit table dynamic text in Tag View. Text elements using dynamic text tags can be as simple or complex as needed. In some cases, you may just need a single, stand-alone tag, but other cases may require several tags along with static text. The following is an example for keeping track of the last person to work on a project:. This example uses static text, two dynamic text tags, a modifier on the first tag to specify the date format, and two formatting tags to italicize the date and the user name.

The output would look something like this: Last updated on Monday, June 9, by userName. It is important to note that text formatting tags will only apply if the current font has that style. Learn more about text formatting tags. You can modify the number of decimal places used by tags that return numeric values by using the decimalPlaces attribute.

If a text element contains nothing but a dynamic text tag that currently parses to nothing, you will see an empty bounding box displayed on the layout when the element is selected. If a text element contains additional static text, or an additional dynamic text tag that does parse to a value, that text displays.

For example, consider the following tag:. If the map contains no credit information, the result on the layout would be "Credits:". By using the empty attribute, you can have default text when there is no information available. The text would look similar to the following:. The result on the layout would be "Credits: Credits for this map were unavailable.

Pre and post string attributes can be used to add text before or after a tag. The advantage of using these attributes over static text is that they will only appear on the layout if the dynamic text tag has a value. If the layout has never been exported, the result on the layout would be "Date Exported:".


thoughts on “Arcgis dynamic text”

Leave a Reply

Your email address will not be published. Required fields are marked *