This function returns the properties of a named field domain as an associated list. These properties include domain Name, Type, Field Type. A list of domain names defined in the drawing can be obtained using the esri_domain_names function. The allowable values defined in a field domain can be obtained using the esri_domain_values_get function.
Syntax
(esri_domain_get domain)
Arguments
- domain | string | required | An existing field domain name in the drawing.
Example usage
Attempt to print all of the properties for each field domain defined within a drawing.(foreach dname (esri_domain_names) (print (esri_domain_get dname))(princ))
Result example usage
Returns the field domain properties for each field domain defined within a drawing as a series of associated lists.
(("Name" . "Height") ("Type" . "CodedValue") ("Field Type" . "Text"))
(("Name" . "Treatment") ("Type" . "CodedValue") ("Field Type" . "Text"))
(("Name" . "UtilityPoles_TypeDomain") ("Type" . "CodedValue") ("Field Type" . "Short"))
(("Name" . "YesNo") ("Type" . "CodedValue") ("Field Type" . "Short"))
Return values
The following are the possible return values:
- If successful, returns the field domain properties of the specified domain as an associated list of dotted pairs.
- If failed, it returns a list with the first value of nil and then an associated list containing the key value "Error" and an associated error message as a string: (nil ( "Error" . "<message>")).
Failed return values
Failed return values can occur for any of the following reasons:
- (nil ("Error" . "No domains found"))
The specified field domain name was not found in the drawing.
- (nil ("Error" . "Missing required argument"))
The incorrect number of arguments were passed to the function.
See also
esri_domain_names | This function returns a list of field domain names defined within the drawing as a list.
esri_domain_values_get | This function gets the values associated with a named field domain as an associated list.