Wednesday, 2 October 2019

arcgis desktop - Adding dynamic text to layout from attribute table with Data Driven Pages?


I was trying to figure out how to use dynamic text from an attribute table in a collection of Data Driven Pages in ArcGIS 10.


I've looked in the help files, but can't find anything on dynamic text from attribute tables.



Answer



The only attribute table accessible through Dynamic Text is the attribute table of your Data Driven Pages index layer. I'm assuming your Data Driven Pages map book is based off of your grid layer, and if so then you're in luck.


Using a dyn tag of type 'page', you can access any property of the index layer




For example, to grab the 'GridName' of the current page, use:



You have probably looked at Using Dynamic Text with Data Driven Pages in the ArcGIS help files, but you may have missed the 'Tip:' section near the end of the page that explains this.


No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...