Book a Demo

Author Topic: Set Default Line Style?  (Read 8410 times)

adama

  • EA User
  • **
  • Posts: 62
  • Karma: +0/-0
    • View Profile
Set Default Line Style?
« on: March 31, 2017, 08:58:40 am »
I suspect that this can be done, but I haven't found it yet. I want to make all Information Flows be "Orthogonal Rounded" every time I create one.

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Set Default Line Style?
« Reply #1 on: March 31, 2017, 11:03:54 am »
I suspect that this can be done, but I haven't found it yet. I want to make all Information Flows be "Orthogonal Rounded" every time I create one.
You need to edit the relevant MDG.

Code: [Select]
<AppliesTo>
<Apply type="InformationFlow">
<Property name="_lineStyle" value="OrthogonalR"/>
</Apply>
</AppliesTo>

We've done that for our unique modelling environment.   We've made Association based relationships default to "Orthogonal Square", Flow or behavioural as "Orthogonal Rounded", and the rest as required.

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

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Set Default Line Style?
« Reply #2 on: March 31, 2017, 04:05:01 pm »
Or just use my "Default Line Styles script"
I have two versions of it. One that can be used with EA-Matic and is automatically executed every time you create a new relation, the other is just a regular script that can be executed on demand
- EA-Matic version
- Regular version

Geert

Guillaume

  • EA Practitioner
  • ***
  • Posts: 1403
  • Karma: +42/-2
    • View Profile
    • www.umlchannel.com
Re: Set Default Line Style?
« Reply #3 on: April 07, 2017, 11:35:41 pm »
I recommend EA-Matic. It's easy to set up and it does the job :)

Thanks Geert!
Guillaume

Blog: www.umlchannel.com | Free utilities addin: www.eautils.com