Sparx Systems Forum

Enterprise Architect => General Board => Topic started by: adama on March 31, 2017, 08:58:40 am

Title: Set Default Line Style?
Post by: adama 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.
Title: Re: Set Default Line Style?
Post by: Paolo F Cantoni 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
Title: Re: Set Default Line Style?
Post by: Geert Bellekens 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 (https://github.com/GeertBellekens/Enterprise-Architect-VBScript-Library/blob/master/Projects/EA-Matic%20Scripts/DefaultLineStyles.vbs)
- Regular version (https://github.com/GeertBellekens/Enterprise-Architect-VBScript-Library/blob/master/Projects/Project%20Bellekens/DiagramGroup/Set%20LineStyles.vbs)

Geert
Title: Re: Set Default Line Style?
Post by: Guillaume 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!