Skip to main content
removed HTH
Source Link
Vince
  • 20.3k
  • 16
  • 48
  • 65

this looks like a problem where a for-loop would work. If you have a list of your MXDs (including path), you can loop over them.

listofmaps = open(r"C:\Users\maplist.txt","r")
for map in listofmaps:
   map1 = arcpy.mapping.MapDocument(map)
   map1.dataDrivenPages.exportToPDF(r"folder where I want pdf stored", "RANGE",    "1-163","PDF_MULTIPLE_FILES_PAGE_NAME")
   del map1

Each map in the text file will be output to the folder. Hope this helps!

this looks like a problem where a for-loop would work. If you have a list of your MXDs (including path), you can loop over them.

listofmaps = open(r"C:\Users\maplist.txt","r")
for map in listofmaps:
   map1 = arcpy.mapping.MapDocument(map)
   map1.dataDrivenPages.exportToPDF(r"folder where I want pdf stored", "RANGE",    "1-163","PDF_MULTIPLE_FILES_PAGE_NAME")
   del map1

Each map in the text file will be output to the folder. Hope this helps!

this looks like a problem where a for-loop would work. If you have a list of your MXDs (including path), you can loop over them.

listofmaps = open(r"C:\Users\maplist.txt","r")
for map in listofmaps:
   map1 = arcpy.mapping.MapDocument(map)
   map1.dataDrivenPages.exportToPDF(r"folder where I want pdf stored", "RANGE",    "1-163","PDF_MULTIPLE_FILES_PAGE_NAME")
   del map1

Each map in the text file will be output to the folder.

this looks like a problem where a for-loop would work. If you have a list of your mxdsMXDs (including path), you can loop over them.

listofmaps = open(r"C:\Users\maplist.txt","r")
for map in listofmaps:
   map1 = arcpy.mapping.MapDocument(map)
   map1.dataDrivenPages.exportToPDF(r"folder where I want pdf stored", "RANGE",    "1-163","PDF_MULTIPLE_FILES_PAGE_NAME")
   del map1

Each map in the text file will be output to the folder. Hope this helps!

this looks like a problem where a for-loop would work. If you have a list of your mxds(including path), you can loop over them.

listofmaps = open(r"C:\Users\maplist.txt","r")
for map in listofmaps:
   map1 = arcpy.mapping.MapDocument(map)
   map1.dataDrivenPages.exportToPDF(r"folder where I want pdf stored", "RANGE",    "1-163","PDF_MULTIPLE_FILES_PAGE_NAME")
   del map1

Each map in the text file will be output to the folder. Hope this helps!

this looks like a problem where a for-loop would work. If you have a list of your MXDs (including path), you can loop over them.

listofmaps = open(r"C:\Users\maplist.txt","r")
for map in listofmaps:
   map1 = arcpy.mapping.MapDocument(map)
   map1.dataDrivenPages.exportToPDF(r"folder where I want pdf stored", "RANGE",    "1-163","PDF_MULTIPLE_FILES_PAGE_NAME")
   del map1

Each map in the text file will be output to the folder. Hope this helps!

Source Link
Sam
  • 116
  • 4

this looks like a problem where a for-loop would work. If you have a list of your mxds(including path), you can loop over them.

listofmaps = open(r"C:\Users\maplist.txt","r")
for map in listofmaps:
   map1 = arcpy.mapping.MapDocument(map)
   map1.dataDrivenPages.exportToPDF(r"folder where I want pdf stored", "RANGE",    "1-163","PDF_MULTIPLE_FILES_PAGE_NAME")
   del map1

Each map in the text file will be output to the folder. Hope this helps!