Author Topic: #name# macro can't return Name field  (Read 352 times)

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 5882
  • Karma: +71/-79
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
#name# macro can't return Name field
« on: January 30, 2017, 06:47:22 pm »
If you have [X] Use Alias if Available set for a diagram and have the (o)Alias only set in the main ([Ctrl+F9]) Diagram | Behaviour options, then there is no way for the shape script to output the name of the element.  Outputting the #name# macro will output the alias field.

The #name# macro will return the alias in such circumstances.  Now, while it is REASONABLE for EA to do this in this circumstance, it is IMPORTANT to provide an alternate mechanism to return the ACTUAL name of the item.  Perhaps a #actualname# macro could ALWAYS return the actual name field of the item and an #actualalias# would always return the actual alias field of the item.

Reported,
Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!