Zusammenfassung
The MapSeriesExportOptions object represents a collection of optional properties that can be used with the export method on the MapSeries and BookmarkMapSeries objects to configure how a map series is exported.
Diskussion
This object is only needed if you want to export a MapSeries or BookmarkMapSeries with properties different than its default values.
The CreateExportOptions function can be used to create a MapSeriesExportOptions object if the class_type parameter is set to MAPSERIES. The returned object contains all the properties needed to configure how map series are exported.
Hinweis:
Currently map series objects can only be exported to PDF.
Eigenschaften
Eigenschaft | Erläuterung | Datentyp |
customPages (Lesen und schreiben) | A string that identifies the map series pages to be exported if the exportPages property is set to CUSTOM. For example, the following string would export 5 pages: 1, 3, 5-7. The default value is an empty string. | String |
exportFileOptions (Schreibgeschützt) | A string constant that represents how the pages will be exported. To change this value, use the setFileExportOptions method. The default value is PDF_SINGLE_FILE.
| String |
exportPages (Schreibgeschützt) | A string constant that represents the collection of map series pages to be exported. To change this value, use the setExportPages method. The default value is ALL.
| String |
showExportCount (Lesen und schreiben) | If set to True, you will see the status of each page being exported displayed in the Python shell. The default value is False. | Boolean |
Methodenübersicht
Methode | Erläuterung |
setExportFileOptions (export_file_options) | A string constant that represents how the pages will be exported. |
setExportPages (export_pages) | A string constant that represents the collection of map series pages to be exported. |
Methoden
setExportFileOptions (export_file_options)
Parameter | Erläuterung | Datentyp |
export_file_options |
| String |
setExportPages (export_pages)
Parameter | Erläuterung | Datentyp |
export_pages |
| String |
Codebeispiel
The following script exports a MapSeries object using default PDFFormat properties but configures the MapSeriesExportOptions to export a custom set of map series pages.
p = arcpy.mp.ArcGISProject('current')
l = p.listLayouts('Layout_MS')[0]
ms = l.mapSeries
pdf = arcpy.mp.CreateExportFormat('PDF', r'c:\temp\MS_PDF.pdf')
msExOpt = arcpy.mp.CreateExportOptions('MAPSERIES')
msExOpt.setExportPages('CUSTOM')
msExOpt.customPages = '1-3'
ms.export(pdf, msExOpt)