Alphabetical list of arcpy.mapping functions

The following is a list of each of the arcpy.mapping functions along with their required and optional input parameters. This document is intended to serve as a quick reference. For more specific information on each parameter (data type, default value, and so forth), click the corresponding link.

arcpy.mapping functions

AddLayer(data_frame, add_layer, {add_position})

AddLayerToGroup(data_frame, target_group_layer, add_layer, {add_position})

AnalyzeForMSD(map_document)

ConvertToMSD(map_document, out_msd, {data_frame}, {msd_anti_aliasing}, {msd_text_anti_aliasing})

DeleteMapService(connection_url_or_name, server, service_name, {folder_name}, {connection_username}, {connection_password}, {connection_domain})

ExportToAI(map_document, out_ai, {data_frame}, {df_export_width}, {df_export_height}, {resolution}, {image_quality}, {colorspace}, {picture_symbol}, {convert_markers})

ExportToBMP(map_document, out_bmp, {data_frame}, {df_export_width}, {df_export_height}, {resolution}, {world_file}, {color_mode}, {rle_compression})

ExportToEMF(map_document, out_emf, {data_frame}, {df_export_width}, {df_export_height}, {resolution}, {image_quality}, {description}, {picture_symbol}, {convert_markers})

ExportToEPS(map_document, out_eps, {data_frame}, {df_export_width}, {df_export_height}, {resolution}, {image_quality}, {colorspace}, {ps_lang_level}, {image_compression}, {picture_symbol}, {convert_markers}, {embed_fonts}, {jpeg_compression_quality})

ExportToGIF(map_document, out_gif, {data_frame}, {df_export_width}, {df_export_height}, {resolution}, {world_file}, {color_mode}, {gif_compression}, {background_color}, {transparent_color}, {interlaced})

ExportToJPEG(map_document, out_jpeg, {data_frame}, {df_export_width}, {df_export_height}, {resolution}, {world_file}, {color_mode}, {jpeg_quality}, {progressive})

ExportToPDF(map_document, out_pdf, {data_frame}, {df_export_width}, {df_export_height}, {resolution}, {image_quality}, {colorspace}, {compress_vectors}, {image_compression}, {picture_symbol}, {convert_markers}, {embed_fonts}, {layers_attributes}, {georef_info}, {jpeg_compression_quality})

ExportToPNG(map_document, out_png, {data_frame}, {df_export_width}, {df_export_height}, {resolution}, {world_file}, {color_mode}, {background_color}, {transparent_color}, {interlaced})

ExportToSVG(map_document, out_svg, {data_frame}, {df_export_width}, {df_export_height}, {resolution}, {image_quality}, {compress_document}, {picture_symbol}, {convert_markers}, {embed_fonts})

ExportToTIFF(map_document, out_tiff, {data_frame}, {df_export_width}, {df_export_height}, {resolution}, {world_file}, {color_mode}, {tiff_compression}, {geoTIFF_tags})

InsertLayer(data_frame, reference_layer, insert_layer, {insert_position})

Layer(lyr_file_path)

ListBrokenDataSources(map_document_or_layer)

ListDataFrames(map_document, {wildcard})

ListLayers(map_document_or_layer, {wildcard}, {data_frame})

ListLayoutElements(map_document, {element_type}, {wildcard})

ListMapServices(connection_url_or_name, server, {connection_username}, {connection_password}, {connection_domain})

ListPrinterNames()

ListTableViews(map_document, {wildcard}, {data_frame})

MapDocument(mxd_path)

MoveLayer(data_frame, reference_layer, move_layer, {insert_position})

PDFDocumentCreate(pdf_path)

PDFDocumentOpen(pdf_path, {user_password}, {master_password})

PrintMap(map_document, {printer_name}, {data_frame}, {out_print_file})

PublishMSDToServer(msd_path, connection_url_or_name, server, service_name, {folder_name}, {service_capabilities}, {connection_username}, {connection_password}, {connection_domain})

RemoveLayer(data_frame, remove_layer)

UpdateLayer(data_frame, update_layer, source_layer, {symbology_only})


7/10/2012