Skip to main content

CreateExportOptions

サマリー

The CreateExportOptions function allows you to alter default export configurations.

ディスカッション

The CreateExportOptions function creates additional classes that can be used to further configure BookmarkMapSeries, MapSeries, and Report export capabilities. The CreateExportOptions function can also be used to modify the application antialiasing mode setting.

構文

CreateExportOptions(class_type)

パラメーター 説明 データ タイプ

class_type

Specifies the class type that will be used.

  • DISPLAY—The DISPLAY class type will be used to modify additional application display options.

  • MAPSERIES—The MAPSERIES class type will be used to modify additional map series export options.

  • REPORT—The REPORT class type will be used to modify additional report export options.

String

戻り値

データ タイプ 説明

Object

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

コードのサンプル

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)