Get the value/description from a domain or subtype for a given field's value?

المشرف العام

Administrator
طاقم الإدارة
I need to get a value from an IObject.Fields.Field using ArcObjects 10.x using the criteria listed below:

  1. If the field has a subtype associated with it, I need to get thesubtype name/description based on the field value.
  2. If the field has a coded value domain associated with it, I need toget the domain's name/description based on the field value.
  3. If the field has neither a subtype or domain associated with it, Iwant the field value itself returned.
  4. Having this functionality wrapped up in one call like "ReadFieldValue(IObject obj, int fieldIndex) is preferred.
Code samples are appreciated but not required - any suggestions are helpful.



أكثر...
 
أعلى