CreateExportOptions

摘要

CreateExportOptions 函数可用于更改默认导出配置。

说明

CreateExportOptions 函数可创建附加类,这些类可用于进一步配置 BookmarkMapSeriesMapSeriesReport export 功能。 CreateExportOptions 函数还可以用于修改应用程序抗锯齿模式设置。

语法

CreateExportOptions (class_type)
参数说明数据类型
class_type

Specifies the class type that will be used.

  • DISPLAYThe DISPLAY class type will be used to modify additional application display options.
  • MAPSERIESThe MAPSERIES class type will be used to modify additional map series export options.
  • REPORTThe REPORT class type will be used to modify additional report export options.
String
返回值
数据类型说明
Object

生成的类基于指定 class_type 值。 可能的类包括 DisplayOptionsMapSeriesExportOptionsReportExportOptions

代码示例

CreateExportOptions 示例

以下脚本使用默认 PDFFormat 属性导出 MapSeries 对象,但会将 MapSeriesExportOptions 配置为导出一组自定义地图系列页面。

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)