Title Map Layers to CSV
Use this tool to create a csv report with field information from your tables and layers.
License
Basic
MapLayersToCSV (map_name, folder, {input_project})
Parameter | Explanation | Data Type |
---|---|---|
map_name |
Dialog Reference
The map with layers and tables to export to csv. |
GPString |
folder |
Dialog Reference
The folder to create the FieldReport csv file in. |
DEFolder |
input_project (Optional) |
Dialog Reference
The Pro project to read maps from. Leave blank to use the active project. |
DEFile |
MapLayersToCSV example 1 (Python window)
Use this tool to create a csv report with field information from your tables and layers.
import arcpy
arcpy.udms.MapLayersToCSV("D:/data/pro.aprx", "editor_map", "D:/data")
MapLayersToCSV example 2 (stand-alone script)
Use this tool to create a csv report with field information from your tables and layers.
import arcpy
input_project = "D:/data/pro.aprx"
map_name = "editor_map"
output_folder = "D:/data"
arcpy.udms.MapLayersToCSV(
input_project=input_project,
map_name=map_name,
output_folder=output_folder,
)