Select to view content in your preferred language

provide ability to rename attribute domain's name in arcpy

1559
3
07-18-2021 04:14 PM
Status: Already Offered
AzinSharaf
Frequent Contributor

All of the Domain's object properties are read only. I cannot rename Domain's name because it is not writable. In some cases (especially after exporting a feature layer to a file geodatabse) all the attribute domains name contains the feature layer ID so that would be great if we can assign new domain value to domina.name. Please see attached.

rename_attribute_domains.png

3 Comments
KoryKramer
AzinSharaf

Thank you @KoryKramer . It works.

KoryKramer
Status changed to: Already Offered

Great!  I'll mark this as already offered by using the Alter Domain tool.  I realize that it isn't the same as making the Name property writable, but accomplishes the goal.

Thank you.