Book a Demo

Author Topic: Order of elements in Project Browser: possible on stereotype?  (Read 3177 times)

Jacob Vos

  • EA User
  • **
  • Posts: 108
  • Karma: +0/-0
    • View Profile
I defined a custom (stereotyped) element based on the metaclass 'Class'. My model has both elements of that metaclass and of the custom type. Alas in the project browser they are 'mixed up' - because they are all of the metatype 'Class'.

Is there a way to first show the Classes and below that the elements of the custom type?

If not with Sparx EA, with an add-on?

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Order of elements in Project Browser: possible on stereotype?
« Reply #1 on: April 15, 2020, 09:58:08 pm »
You can order the elements in the project browser (up to a certain extend) using the up/down arrows.

These correspond to the property TreePos on the EA.Element.

If you wanted you could write a little script that re-orders your elements to your liking.
If you want this to be automatically executed then you'll need to write an add-in, or use EA-Matic to trigger your script.

Geert

Jacob Vos

  • EA User
  • **
  • Posts: 108
  • Karma: +0/-0
    • View Profile
Re: Order of elements in Project Browser: possible on stereotype?
« Reply #2 on: April 15, 2020, 11:07:05 pm »
Indeed I was looking for a non-manual way of doing this. Thank you for your suggestions.