Select to view content in your preferred language

Change "Split Policy" for all or many Domains at Once

197
1
03-27-2024 01:15 PM
Status: Open
Labels (1)
EricPetersen
New Contributor II

ESRI should implement a feature that allows the user to change the Split Policy for all of the domains in a feature class or geodatabase at the same time. Most often when splitting a shape feature, the original information from all or most fields is desired to be retained in both of the new records. Changing the split domain for all domains to "Duplicate" from "Default" one by one is cumbersome and time consuming. An ArcPy solution is shown in another thread, however this would be a useful feature to implement in the GUI to streamline workflows for many users.

1 Comment
SSWoodward

Thanks for the Idea @EricPetersen .  I can see how this would be a useful feature in the UI now that we've enabled multiselect in the domains view.

For those finding themselves here while this idea develops, the following python command can be used to achieve this.

 

import arcpy

gdb = <path to your geodatabase>
split = "DEFAULT" # (DEFAULT/DUPLICATE/GEOMETRY_RATIO* - Range Domains Only ))

domains = arcpy.da.ListDomains(gdb)

for domain in domains:
    arcpy.management.AlterDomain(
        in_workspace=gdb, 
        domain_name=domain.name,  
        split_policy=split, 
    )

 

For more information on the Alter Domain GP tool check out the documentation below.

Alter Domain Geoprocessing Tool