Title Modify Map by Rename and Configure
Applies rename and configuration options to maps based on an asset package.
Applies rename and configuration options to maps based on an asset package.
License
BasicToolset
Map
FilterMap (maps, asset_package, {configurations}, {rename_field}, {input_project})
Parameter | Explanation | Data Type |
---|---|---|
maps |
Dialog Reference
The maps in the current ArcGIS Pro project to modify. |
GPString |
asset_package |
Dialog Reference
The asset package with rename and/or configuration tables. |
DEWorkspace |
configurations (Optional) |
Dialog Reference
The configurations to keep. The deselected options will be removed from the map. |
GPString |
rename_field (Optional) |
Dialog Reference
The rename field to apply. Items in the map will have their names changed. |
GPString |
input_project (Optional) |
Dialog Reference
The Pro project to read maps from. Leave blank to use the active project. |
DEFile |
FilterMap example 1 (Python window)
Modifies the Editor map.
import arcpy
arcpy.udms.FilterMap("Editor", "D:/data/AssetPackage.gdb", "Balanced")
FilterMap example 2 (stand-alone script)
Applies configurations/rename to all maps in the selected Project.
import arcpy
aprx = arcpy.mp.ArcGISProject("D:/data/Network.aprx")
arcpy.udms.FilterMap(
maps=[m.name for m in aprx.listMaps()],
asset_package=aprx.defaultGeodatabase,
configurations=["Balanced"],
rename_field="French",
input_project=aprx.filePath,
)