Is it possible to export the extents of DDP to KMZ using arcpy - Map to KML (Conversion)? Alternatively can we export each extent of a single DDP extent to a new mxd and then run arcpy.MapToKML_3d on each of these temporary mxds?
http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//00120000004p000000 - doesn't seem to allow one to use it with DDP.
For converting each ddp extent to an mxd I found -
import arcpy, os mxdPath = r"C:\Project\DDPMap.mxd" mxd = arcpy.mapping.MapDocument(mxdPath) mxdDir = os.path.dirname(mxdPath) for pageNum in range(1, mxd.dataDrivenPages.pageCount + 1): mxd.dataDrivenPages.currentPageID = pageNum mxdName = os.path.join(mxdDir, "DDPMap" + str(pageNum) + ".mxd") mxd.saveACopy(mxdName) del mxd
but have not tried it yet...I would prefer not to have the overhead of creating mxd's unnecessarily.
==== Scale bar size/text issues when using ddp
So the width needs to change so that the text is 100/50 value.