Alphabetical list of arcpy.mapping functions (arcpy.mapping)

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})

AddTableView(data_frame, add_table)

AnalyzeForMSD(map_document)

AnalyzeForSD(sddraft)

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

ConvertWebMapToMapDocument(webmap_json, {template_mxd}, {notes_gdb}, {extra_conversion_options})

CreateGISServerConnectionFile(connection_type, out_folder_path, out_name, server_url, server_type, {use_arcgis_desktop_staging_folder}, {staging_folder_path}, {username}, {password}, {save_username_password})

CreateMapSDDraft(map_document, out_sddraft, service_name, {server_type}, {connection_file_path}, {copy_data_to_server}, {folder_name}, {summary}, {tags})

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

ExportReport(report_source, report_layout_file, output_file, {dataset_option}, {report_title}, {starting_page_number}, {page_range}, {report_definition_query}, {extent}, {field_map})

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)

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

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()

ListStyleItems(style_file_path, style_folder_name, {wildcard})

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}, {image_quality})

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)

RemoveTableView(data_frame, remove_table)

TableView(table_view_data_source)

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

UpdateLayerTime(data_frame, update_layer, source_layer)

3/3/2014