I have a map book with data driven pages that shows the fire boundaries, roads, etc for our fire rescue department. I want to automate the process of creating individual mini map books for each fire station that only include the pages within their boundary. I started off by creating a model that will iterate through the district boundary names and select all pages with those boundaries:
Now, I'd like to take the selected pages and export them to a pdf in individual folders. My goal is to have a folder for each district name and within the folder have individual pdfs of the pages that make up that district.
I'm assuming the best way to do this portion is with
arcpy.mapping so I have exported the model above to a python script:
# Import arcpy module import arcpy # Load required toolboxes arcpy.ImportToolbox("Model Functions") # Local variables: Fire_Boundaries = "Fire Boundaries_exportPDF" Grid = "HydrantGrid_exportPDF" Selected_District = "I_Fire Boundaries_exportPDF_NAME" # Process: Iterate Feature Selection arcpy.IterateFeatureSelection_mb(Fire_Boundaries, "NAME #", "false") # Process: Select Layer By Location arcpy.SelectLayerByLocation_management(Grid, "INTERSECT", Selected_District, "", "NEW_SELECTION")
I'm not sure where to go from here with arcpy/python? Any help would be appreciated.