Alphabetical list of arcpy.mp constants

Below is a list of arcpy.mp parameter constants. Many of these parameters are used with multiple arcpy.mp functions and/or methods. Most of these parameters are optional—those surrounded by curly brackets ({})—and when appropriate, the default values are indicated next to the value. This document is intended to serve as a quick reference. For more specific information on what the parameter values mean, refer to the function or method documentation by using the links provided next to the parameter name.

arcpy.mp constants

{add_position}—Used by addLayer and addLayerToGroup methods on the LayerFile and Map classes.

  • "AUTO_ARRANGE"—Default
  • "BOTTOM"
  • "TOP"

{arrangement}—Defined on the LegendItem class.

  • "PatchLabelDescription"
  • "PatchDescriptionLabel"
  • "LabelPatchDescription"
  • "LabelDescriptionPatch"
  • "DescriptionPatchLabel"
  • "DescriptionLabelPatch"

{color_mode}—Used by exportToPNG and exportToTIFF methods on the Layout and MapFrame classes.

  • "8-BIT_ADAPTIVE_PALETTE"
  • "8-BIT_GRAYSCALE"
  • "24-BIT_TRUE_COLOR"—Default
  • "32-BIT_WITH_ALPHA"

{colorizer_name}—Used by the updateColorizer method on the Symbology class.

  • "RasterClassifyColorizer"
  • "RasterStretchColorizer"
  • "RasterUniqueValueColorizer"

{element_type}—Used by the listElements method on the Layout class.

  • ""—Default
  • "GRAPHIC_ELEMENT"
  • "LEGEND_ELEMENT"
  • "MAPFRAME_ELEMENT"
  • "MAPSURROUND_ELEMENT"
  • "PICTURE_ELEMENT"
  • "TEXT_ELEMENT"

{encryption}—Used by the updateDocSecurity method on the PDFDocument class.

  • "RC4"—Default

{extrusion_type}—Used by the extrusion method on the Layer class.

  • "ABSOLUTE_HEIGHT"
  • "BASE_HEIGHT"
  • "MAX_HEIGHT"
  • "MIN_HEIGHT"
  • "NONE"—Default

{fittingStrategy}—Defined on the LegendElement class.

  • "AdjustFontSize"
  • "AdjustColumns"
  • "AdjustColumnsAndFont"
  • "AdjustFrame"
  • "ManualColumns"—Default

{image_compression}—Used by the exportToPDF method on the Layout, MapFrame, and MapSeries classes.

  • "ADAPTIVE"—Default
  • "DEFLATE"
  • "JPEG"
  • "LZW"
  • "NONE"
  • "RLE"

{image_quality}—Used by the exportToPDF method on the Layout, MapFrame, and MapSeries classes.

  • "BEST"—Default
  • "BETTER"
  • "FASTER"
  • "FASTEST"
  • "NORMAL"

{insert_position}—Used by insertLayer method on the LayerFile and Map classes.

  • "AFTER"
  • "BEFORE"—Default

{jpeg_color_mode}—Used by exportToJPEGmethod on the Layout and MapFrame classes.

  • "8-BIT_GRAYSCALE"
  • "24-BIT_TRUE_COLOR"—Default

{layer_property}—Used by the supports method on the Layer class.

  • "BRIGHTNESS"
  • "CONTRAST"
  • "DATASOURCE"
  • "DEFINITIONQUERY"
  • "LONGNAME"
  • "MAXTHRESHOLD"
  • "MINTHRESHOLD"
  • "NAME"
  • "TIME"
  • "TRANSPARENCY"
  • "VISIBLE"

{layers_attributes}—Used by the ExportToPDF method on the Layout, MapFrame, and MapSeries classes.

  • "LAYERS_AND_ATTRIBUTES"
  • "LAYERS_ONLY"—Default
  • "NONE"

{method}—Used by the setSelectionSet method on the Layer and Table classes.

  • "DIFFERENCE"
  • "INTERSECT"
  • "NEW"—Default
  • "SYMDIFFERENCE"
  • "UNION"

{multiple_files}—Used by the ExportToPDF method on the MapSeries class.

  • "PDF_MULTIPLE_FILES_PAGE_NAME"
  • "PDF_MULTIPLE_FILES_PAGE_NUMBER"
  • "PDF_SINGLE_FILE"—Default

{page_range_type}—Used by the ExportToPDF method on the MapSeries class.

  • "ALL"
  • "CURRENT"
  • "RANGE"—Default
  • "SELECTED"

{pdf_layout}—Used by the updateDocProperties method on the PDFDocument class.

  • "DONT_CARE"
  • "ONE_COLUMN"
  • "SINGLE_PAGE"—Default
  • "TWO_COLUMN_LEFT"
  • "TWO_COLUMN_RIGHT"
  • "TWO_PAGE_LEFT"
  • "TWO_PAGE_RIGHT"

{pdf_open_view}—Used by the updateDocProperties method on the PDFDocument class.

  • "ATTACHMENT"
  • "FULL_SCREEN"
  • "LAYERS"
  • "USE_BOOKMARKS"
  • "USE_NONE"
  • "USE_THUMBS"—Default
  • "VIEWER_DEFAULT"

{permissions}—Used by the updateDocSecurity method on the PDFDocument class.

  • "ALL"—Default
  • "ALL_MASTER"
  • "COPY"
  • "DOC_ASSEMBLY"
  • "EDIT"
  • "EDIT_NOTES"
  • "FILL_AND_SIGN"
  • "HIGH_PRINT"
  • "OPEN"
  • "PRINT"
  • "SECURE"

{renderer_name}—Used by the updateRenderer method on the Symbology class.

  • "GraduatedColorsRenderer"
  • "GraduatedSymbolsRenderer"
  • "SimpleRenderer"
  • "UnclassedColorsRenderer"
  • "UniqueValueRenderer"

{server_type}—Used by the CreateWebLayerSDDraft function.

  • "MY_HOSTED_SERVICES"—Default

{server_type}—Used by the getWebLayerSharingDraft method on the Map class.

  • "HOSTING_SERVER"
  • "FEDERATED_SERVER"

{service_type}—Used by the CreateWebLayerSDDraft function.

  • "FEATURE_ACCESS"—Default
  • "TILED"

{service_type}—Used by the getWebLayerSharingDraft method on the Map class.

  • "FEATURE"
  • "MAP_IMAGE"
  • "TILE"

{tiff_compression}—Used by the exportToTIFF method on the Layout class.

  • "DEFLATE"
  • "JPEG"
  • "LZW"
  • "NONE"—Default
  • "PACK_BITS"

{timeInclusion}—Used by the MapTime class.

  • "EXCLUDE_START_AND_END"
  • "INCLUDE_ONLY_END"
  • "INCLUDE_ONLY_START"
  • "INCLUDE_START_AND_END"

{timeUnits}—Used by multiple properties in the LayerTime and MapTime classes.

  • "MILLISECONDS"
  • "SECONDS"
  • "MINUTES"
  • "HOURS"
  • "DAYS"
  • "WEEKS"
  • "MONTHS"
  • "YEARS"
  • "DECADES"
  • "CENTURIES"

In diesem Thema
  1. arcpy.mp constants