Desktop Mapping: Building Map Books

3473
1
07-14-2014 04:41 PM
Comments

Hello All,

I apologize if this question has been asked a dozen times. I have done a ton of research, but I feel like I am still in the rabbit hole. I am trying to create a Map Book using ArcGIS Pro and python. My goal is to iterate through my index layer, zoom to selection, export that selection to a PDF, and then append all those individual maps to a PDF. 

The way I am tackling this issue is to create GRID first, which is the code below:

#Part 1: Create Grid

#Import System Modules
import arcpy
from arcpy import env

#Set environment settings
arcpy.env.workspace = "C:\data\"

#Set local variables
outputFC = "Map Index"
inputFC "Sanborn_1920_AllBldgs"
polygonWidth = "139.2 meters"
polygonHeight = "153.7 meters"
numberRows = "3"
numberColumns = "5"
startingPageNum = "5"

#Execute GridIndex Features
arcpy.cartography.GRIDIndexFeatures(outputFC, inputFC, "INTERSECTFEATURE", "NO_USEPAGEUNIT", None, polyonWidth, polygonHeight, "", "", 3, 5, 7, "NO_LABELFROMORIGIN")

 

My next step is to loop through my table of contents, zoom to each selection, and make it its own map, and that is where I get confused. Does it make sense to use def zoom_export or arcpy.mapping module?

Version history
Last update:
‎07-14-2014 04:41 PM
Updated by:
Anonymous User
Contributors