Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: Paolo F Cantoni on September 18, 2020, 11:46:21 am
-
The MDG generation process generates a set of defined stereotypes from a profile diagram. What order do the stereotypes in the profile get generated? It appears to be t_diagramobjects.Sequence. Can anyone confirm? If so, then we can script the desired order.
Reported,
Paolo
-
Yes. It's that field in the database. It can be configured in the UI by changing the z-order.
-
Yes. It's that field in the database. It can be configured in the UI by changing the z-order.
Just to complete the topic, the stereotypes are actually emitted in REVERSE z-order! ::) That is, the higher the Sequence value, the closer to the start of the file! Took me a while to reverse all the special order I created assuming (stupid idiot, this IS EA! :o) that it would be emitted in ascending Sequence value.[1]
Hope this helps someone.
Paolo
[1] I did it via direct queries, not by hand, so I didn't waste too much time!