Book a Demo

Author Topic: Pre setting default diagram properties  (Read 3798 times)

skiwi

  • EA Expert
  • ****
  • Posts: 2081
  • Karma: +46/-82
    • View Profile
Pre setting default diagram properties
« on: July 06, 2023, 01:00:19 pm »
There has been some conversation over the years, for example
Changing default properties for a set of diagrams (sparxsystems.com)
Changing default diagram properties (sparxsystems.com)
Set default values for diagram properties (sparxsystems.com)


I wonder what the state of the art is now.
For example I would like all new diagrams to have preset
  • use alias if available
  • (unset) show additional parents)
  • (unset) show namespace
  • display element lock status
  • (unset) show element stereotypes (Elements)
  • (unset) stow stereotype labels (Connectors)
Orthogonality rules
Position and Team disestablished, thanks austerity.
Now itinerant.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Pre setting default diagram properties
« Reply #1 on: July 06, 2023, 06:17:19 pm »
There's a little bell ringing about some attributes you can set for diagrams in a profile (only through a backdoor). Paolo started a thread about this. Can't recall the details at the moment :-/

q.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Pre setting default diagram properties
« Reply #2 on: July 06, 2023, 06:22:11 pm »
There's basically two ways:

- use the template package. You would have to create a diagram for each type, and set the settings you want. I'm not sure if it works for all the settings, but definitely for most.
- If you have your own diagram types defined in a profile, you can set most of those attributes there. Some of them are accessible through the profile helper, but for others you need to add them to the initial value of an attribute on the metatype. See https://sparxsystems.com/enterprise_architect_user_guide/16.1/modeling_frameworks/attribute_values-stylex__pda.html for more details.

Geert

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Pre setting default diagram properties
« Reply #3 on: July 06, 2023, 06:46:06 pm »
Yep. That little styleEx was it. Seems to be official now...

q.