Saturday, 4 November 2017

arcpy - Dynamically change zoom level of overview map to fit with current extent in DDP



I am using DDP pages in a large mapset with pages ranging from 1:7500 to 1:130,000 and the overview map is zoomed out to far to see some of the smaller zones. Is it possible to set the overview map to zoom to say 10 times the current DDP page extent? so a 50k main sheet would have the overview at 500k.


Map overview scale @ 1:3,000,000 - meaningless as it is to full of info. enter image description here


Map overview scale @ 1:500,000 enter image description here


So we can use the cartography-->ddp-->calculate adjacent fields to get the adjoining map sheets but this doesn't seem to help in changing the zoom levels of the map.


Till now my workaround has been to create multiple mxd's which have all the maps in an overview zone that makes sense but this causes issues when making edits to pages etc etc and it would be ideal to automate it into one mxd.


Also is it possible to get DDP to fill in the total number of maps -this should be map 14 of 38 but the 13 is carried over from a previous version as it's hard coded.




I also found another workaround. In the overview map data frame properties, go to Data Frame tab and choose options as per the screen capture below.


enter image description here


This seems to work fine as long as the extents don't change to much.





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...