Author Topic: Where is "Alias"  (Read 4898 times)

RElwood

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Where is "Alias"
« 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?

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8085
  • Karma: +118/-20
    • View Profile
Re: Where is "Alias"
« Reply #1 on: October 29, 2010, 08:19:00 am »
Did you try Element.Alias?

RElwood

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: Where is "Alias"
« Reply #2 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."

Aaron B

  • EA Administrator
  • EA User
  • *****
  • Posts: 941
  • Karma: +18/-0
    • View Profile
Re: Where is "Alias"
« Reply #3 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

RElwood

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: Where is "Alias"
« Reply #4 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.

RoyC

  • EA Administrator
  • EA Practitioner
  • *****
  • Posts: 1297
  • Karma: +21/-4
  • Read The Help!
    • View Profile
Re: Where is "Alias"
« Reply #5 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.
Best Regards, Roy