English

How To: Apply domain values to a field using the Field Calculator

Summary

This workflow describes the steps that can be used to apply a coded value domain to a field within a feature class using the Field Calculator.

Procedure

In some cases, it is desirable to apply the description (i.e., red) of a coded value domain to multiple records within a field at one time. Rather than taking the time to apply each domain value for each individual record, the Field Calculator can be used to save time.

In this scenario, it is assumed that a domain has already been applied to the field to which assign values to. The domain has the following attributes:

Domain Name: Color
Field Type: Long Integer
Domain Type: Coded Values

Domain Values
Code:0 Description: Blue
Code:1 Description: Red
Code:2 Description: Green

A quick tour of attribute domains

  1. Open attribute table of feature class.
  2. Highlight the records to apply coded value domain descriptions to.
  3. Right-click the field name that the domain (Color) is applied to, and click Field Calculator.
  4. Input the coded value that matches the desired description. For instance, if it is necessary for all values to be 'Red', input '1' and select OK. This is because the coded value assigned to 'Red' in the domain is '1'.

    Note:
    Keep in mind that the field type of the field must match the field type of the domain.

Related Information