Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: BruceTOGAF2 on August 21, 2020, 11:09:12 pm
-
I have a class element with stereotype "Logical Data Entity". From the context menu of this element (displayed in a diagram) I choose 'Features and Properties' > 'Attributes'. Then I can add attributes to the Logical Data Entity but they are always listed in alphabetical order. I want the ID to be the first attribute displayed, but I seem unable to force any ordering of attributes. How can I change the ordering of attributes displayed in my diagram?
-
Go the the features window and use Ctrl+Up or Ctrl+Down to order the attributes.
Geert
-
Also, you can set your preferences for this.
Go to "Start".."Preferences"..
Then on the Preferences dialog, select "Objects".
Then on the right you should find a checkbox labeled "Sort features alphabetically".
Perry
-
Thank you Geert Bellekens. Your solution works perfectly.
-
In the features window I am successfully using Ctrl+Up or Ctrl+Down to order the attributes. However, if a assign a custom stereotype (Business Identifier) to an attribute, (although the features window allows me to set the attribute to the top position) the diagram always displays the stereotyped attribute at the bottom of all the other attributes.
How can I force the diagram to display the stereotyped (Business Identifier) attribute at the top of all the other attributes?
How can I force the diagram to display attributes in the same order that they are displayed in the features window?
-
There's an option somewhere that controls the grouping by stereotype of attributes.
If you turn that off, the attributes will show in their actual order.
Geert
PS. There is a UML native isID property that you might want to use instead of a stereotype.
-
Does anybody know how to set the own order of the attribute groups based on stereotypes?
-
Thanks pvickers. This is what I am looking for......