Message 1 of 4
AttributeSet.Add method - how to add attribute
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I have a problem with adding attributes to an attribute set.
Attribute set was created and I can print its name, so I assume it is there
I now need to add attributes to the set.
But cannot get Add method to work.
Can someone en-light me how do I add attribute? (I need various types: string, byte array, boolean.)
I tried like this:
attr = occAttributeSet.Add("0001TopName", ValueTypeEnum.kStringType, SattrName)
and like this:
occAttributeSet.Add("0006DefaultInPre", ValueTypeEnum.kStringType, "Off")
But I am getting run time exception every time.
Cris.
Cris,
https://simply.engineering
https://simply.engineering