Manual Python
Manual Python
You rst create a domain and enter the codes and descriptions, or specify the numeric range. A coded value domain
can apply to any type of attributetext, numeric, date, and so on. The domain type must match the data type youre
creating the domain for (if the eld is integer, the domain type must also be integer).
Enter the
minimum and
maximum values
for the range
You then associate the domain with a eld in one or more feature classes or tables in the geodatabase.
120
and attribute domains without having to create separate feature classes or tables for each category. For example, in a
water network, it may be that transmission water mains can have a pressure between 40 and 100 psi, while distribution
water mains can have a pressure between 50 and 75 psi. Rather than creating separate feature classes for transmission
and distribution water mains, youd create two subtypestransmission mains and distribution mainswithin the
water mains feature class. You could then assign different range domains for the water pressure eld to each. Subtypes
can also be used to assign different topology rules to different types of features within a feature class (see the previous
121