Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: RElwood on October 29, 2010, 07:45:01 am
-
On Element property sheets there is a field called "Alias" described as "Enter an alias (alternative display name) for the object. Where is "Alias" in the object model? How do I access/set it?
-
Did you try Element.Alias?
-
Thanks for the quick reply. You are correct, Element.Alias works for the Class element. I should have been more specific. I am specifically trying to access the Alias property of the Attributes of a UML Class. In the property sheet for Class Attributes there is an Alias field. When I set a variable, say attribute, to the type Attribute and attempt to reference attribute.Alias I get an error that the "Object doesn't support this property or method."
-
See "Accessing the Alias of Attribute Class" on the following FAQ page:
http://www.sparxsystems.com/support/faq/automation.html
-
Thanks very much for the reply - my problem is solved. I can only say that this information is well hidden. It doesn't show up anywhere in the EA Users Guide or in the Enterprise Architect Object Model documentation. And when I go to the Sparx Support page and Search for "attribute alias", the search results do not include the FAQ page with the answer. Thanks again for pointing me in the right direction.
-
The point is actually mentioned in the Enterprise Architect User Guide, but it is now a lot clearer and is indexed. The change will be seen in the documentation for the next release of Enterprise Architect.