Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: JuergenA on March 15, 2005, 09:19:16 am
-
Hi,
if I call the method to find an attribute of a class by its name I get the following error code:
?err.Number
-2147221504
?err.Description
Action is not supported
The attribute name and the class does exist, but
?class.IsNew says "true".
Any hint?
thx,
Juergen
Code:
Dim aAttr As EA.Attribute
Dim aClass As EA.Element
...
sAttrName="existing_attribute_name"
aClass.Attributes.GetByName(sAttrName)
... -> error!