Title Asset Package Rename Report
Generates a collection of Excel Workbooks/Sheets to review the various Asset Package rename options.
Multiple rename can be selected to compare the results.
License
BasicToolset
Asset Package
CompareRenames (asset_package, rename, folder, {configuration})
Parameter | Explanation | Data Type |
---|---|---|
asset_package |
Dialog Reference
The asset package with rename table. |
DEWorkspace |
rename |
Dialog Reference
Select the rename options you want to apply to your report. The D_Rename table must be present in your asset package. |
GPString |
folder |
Dialog Reference
The location to save the output. A unique folder starting with Rename will be generated in this location for each run of the tool. |
DEFolder |
configuration (Optional) |
Dialog Reference
Select the configuration options you want to apply to your report. The D_Configurations table must be present in your asset package. |
GPString |
CompareRenames example 1 (Python window)
Creates a rename report for the selected renames in the asset package.
import arcpy
arcpy.udms.CompareRenames("D:/data/network.gdb", "Spanish", "D:/data/report")
CompareRenames example 2 (stand-alone script)
Creates a rename report for the selected renames in the asset package.
import os
import arcpy
workspace = "D:/data/network.gdb"
output = arcpy.udms.CompareRenames(
asset_package=workspace,
rename=["Spanish", "French"],
folder=os.path.join(os.path.dirname(workspace), "Renames"),
configuration=["Ground"],
)
print(output[0])