Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: RElwood on October 29, 2010, 07:45:01 am

Title: Where is "Alias"
Post 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?
Title: Re: Where is "Alias"
Post by: Eve on October 29, 2010, 08:19:00 am
Did you try Element.Alias?
Title: Re: Where is "Alias"
Post by: RElwood on October 29, 2010, 09:26:48 am
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."
Title: Re: Where is "Alias"
Post by: Aaron B on October 29, 2010, 09:34:51 am
See "Accessing the Alias of Attribute Class" on the following FAQ page:
http://www.sparxsystems.com/support/faq/automation.html
Title: Re: Where is "Alias"
Post by: RElwood on October 30, 2010, 03:02:07 am
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.
Title: Re: Where is "Alias"
Post by: RoyC on November 08, 2010, 11:08:40 am
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.