Skip To Content

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"

{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"

{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 theupdateDocSecurity 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

{image_compression}—Used by the exportToPDF method on the Layout class.

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

{image_quality}—Used by the exportToPDF method on the Layout class.

  • "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"
  • "TRANSPARENCY"
  • "VISIBLE"

{layers_attributes}—Used by the ExportToPDF method on the Layout class.

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

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

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

{pdf_layout}—Used by theupdateDocProperties 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 theupdateDocProperties method on the PDFDocument class.

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

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

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

{server_type}—Used by the CreateWebLayerSDDraft function.

  • "MY_HOSTED_SERVICES"—Default

{service_type}—Used by the CreateWebLayerSDDraft function.

  • "FEATURE_ACCESS"—Default
  • "TILED"

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

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

In this topic
  1. arcpy.mp constants