CreateExportOptions

Resumen

The CreateExportOptions function creates additional classes that can be used to further configure BookmarkMapSeries, MapSeries and Report export capabilities.

Debate

These classes are only necessary if the default export configurations need to be altered.

Sintaxis

CreateExportOptions (class_type)
ParámetroExplicaciónTipo de datos
class_type
  • MAPSERIESTo modify additional map series export options.
  • REPORTTo modify additional report export options.
String
Valor de retorno
Tipo de datosExplicación
Object

The resulting class is based on the specified class_type value. The possible classes are: MapSeriesExportOptions and ReportExportOptions.

Muestra de código

CreateExportOptions example

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)