cancel
Showing results for 
Search instead for 
Did you mean: 

Creating MultiValued Taxonomy Attributes using API

Former Member
0 Kudos

Hi All,

I'm trying to create an attribute in the taxonomy table that has text/multivalued type. I am able to create the attribute and set the type to text/multivalued, but I am not sure how to create the actual value set for it.

For example, a "Color" attribute would have a value set consisting of a list of possible colors, i.e. blue, green, yellow, etc...

In the AttributeInfo class, I see no methods to accomplish this.

Please let me know if you have any ideas!

Thanks!

Roman D.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Roman,

Please have a look at the AttributeInfo.GetFeatures() method. This returns an instance of FeatureDomain which holds an array/collection of FeatureValue instances. In your case it will be empty and you must add the FeatureValue instances.

Hope this helps,

Richard

Former Member
0 Kudos

Hi Richard,

Thanks very much for your response. FeatureDomain did the trick. Would this also apply to numeric and coupled-numeric attributes for properties such as dimension and default unit?

Thanks!

Roman D.

Answers (0)