So .. I think I tried all of the suggestion here, and it still not working. Here is a longer snippet of code, but understand EVERYTHING ELSE IS WORKING (sorry about the caps, but you must understand..) that all other fields are updating correctly.
Geert, when I look at the addOrUpdateAttribute function, the 4th parameter (Description) actually maps to 'Notes', not Initial Value - which is what I'm trying to set. Stated another way -- bring up the Attributes dialog box, and look at the six columns (Name, Type, Scope, Stereotype, Alias, Initial Value). How do I set "Initial Value"?
Thank you so much for the help.
Code:
'Add attribute #1
Dim currentAttribute As EA.Attribute
attrType = ""
If row.Count > CONST_ATTRIBUTE1 Then
attrName = row.Item(CONST_ATTRIBUTE1)
attrValue = row.Item(CONST_VALUE1)
If Len(Trim(attrName)) > 0 And Len(Trim(attrValue)) > 0 Then
stereotype = ""
Set currentAttribute = eaConn.addOrUpdateAttribute(currentClass, attrName, stereotype, attrValue, attrType)
currentAttribute.Default = attrValue
eaConn.addOrUpdateAttributeTag currentAttribute, attrName, attrValue
End If
End If