Tools that honor the Transfer field domain, subtypes, and attribute rules environment will have these properties transferred from the input dataset's fields to the output dataset's fields.
- Transferring domains, subtypes, and attribute rules to the output of the geoprocessing operation will take more time (slower performance) than transferring only the domain and subtype codes. Only use this environment setting if domains, subtypes, and attribute rules are specifically needed in the output.
Dialog syntaxTransfer field domains, subtypes and attribute rules
- Checked—Geodatabase field properties are transferred to the output.
- Unchecked—Geodatabase field properties are not transferred to the output. This is the default.
arcpy.env.transferGDBAttributeProperties = True
Geodatabase field properties are transferred to the output.
Geodatabase field properties are not transferred to the output. This is the default.
import arcpy # Set the transferGDBAttributeProperties environment to True arcpy.env.transferGDBAttributeProperties = True