Hot answers tagged coded-value-domain
5
Here is something I put together that works on the simple gdb's I have on hand. I don't know how it might or might not handle sub-types with multiple domains (see Brent's comment).
Usage:
python export_gdb_domains.py [input geodatabase]
It exports the tables to the same gdb it's getting the domains from. It will fail if the table(s) exist already.
I ...
2
There is a Technical Article here that may supply you with an answer.
It says:
Cause
These errors occur if the domain is applied to one or more fields in the geodatabase.
Solution or Workaround
To delete a domain, it must not be associated with any fields in the geodatabase.
2
As @PolyGeo mentioned, If you are using 10.1, the arcpy.da (Data Access) module contains a ListDomains function which returns a list of Domain objects, each with a codedValues property you can examine to determine if the specified value exists in a given domain.
Alternatively, if this is an SDE geodatabase at version 10 or greater (in earlier versions, ...
2
You will need to be using ArcGIS 10.1 to use the da (Data Access) module but it looks like the Domain class has a codedValues property that can be used to obtain a Python dictionary containing the coded values for attribute domains.
2
Are you asking about outside of an edit session?
If you have access to the data in arcmap you have access to the data in arccatalog.
In arcmap there is a small button at the top with a "yellow file cabinet" catalog.
If you access the data in arcmap, ArcCatalog is how that connection is created.
Does IT have that locked down?
a. If you have the data in ...
2
It will depend somewhat on the type of field and domain you are using.
Assuming you are using the defaults, integer, and coded value.
you want the syntax in the field calculator to be (selectedrowsinmydomainfield) = newcodedvalue
in the example...
nom_size is the domain with 1 = 1"
If I want to change all selected values to 1".
I use the syntax in the ...
1
Not sure where your idea fits in among these, but there are several out on the ArcGIS Ideas site you might want to vote for:
Allow subtypes on multiple fields
Requesting a Sub-Subtype Option
Coded value domains set mulit-level dependancy on coded value domains for a feature class
Only top voted, non community-wiki answers of a minimum length are eligible