I'm curious if there is a trick that I'm missing to make a new coded-value domain auto-populate from a field's values. I'm clicking from the Domain drop-down for a field in Fields view, choosing Add New Coded Value Domain, and being taken to the Domains view, and a new empty line without anything populating.
Thank you!
Solved! Go to Solution.
Don't know of an automatic way to do this, but you can easily run the Table To Domain GP tool, just need a lookup table to feed into it.
Can export the feature class table to Excel, pivot on it to get unique values, then use that for the Table2Domain.
Along with other methods to create the lookup table, you can also run the Summary Staitistics tool on the feature class, pick the field you want a domain for in both the statistics field and cse field. Then, feed this statistics table into the Table 2 Domain tool, and pick the same field for both Code and Description (I usually set up my Domains so the Code and Description are the same. Reduces a lot of future issues in query/displaying the "correct" value).
R_
Don't know of an automatic way to do this, but you can easily run the Table To Domain GP tool, just need a lookup table to feed into it.
Can export the feature class table to Excel, pivot on it to get unique values, then use that for the Table2Domain.
Along with other methods to create the lookup table, you can also run the Summary Staitistics tool on the feature class, pick the field you want a domain for in both the statistics field and cse field. Then, feed this statistics table into the Table 2 Domain tool, and pick the same field for both Code and Description (I usually set up my Domains so the Code and Description are the same. Reduces a lot of future issues in query/displaying the "correct" value).
R_
Ah yes, I forgot about the Table to Domain tool. Thank you!
It worked as expected.
Hi Elisabeth , I recently find out the geoprocessing tools named Add Domain, Alter Domain, Add Coded Domain and Assign Domain, there are very useful to automatize those tasks when you use them in Model Builder's flow, check it out and let me know if it was a good tip.
There is a method to do this, and I have done so successfully in the past. But not working for me in 3.x