Sparx Systems Forum

Enterprise Architect => General Board => Topic started by: Ignacio G. T. on February 08, 2013, 11:47:24 pm

Title: Changing [default] directions in associations
Post by: Ignacio G. T. on February 08, 2013, 11:47:24 pm
I'm drawing a big deployment diagram and I'm tired to change every communication path's direction from the default (Source -> Destination) to what I usually need (Bi-Directional) or what I could stand (Unspecified).

1) Is there a simple way to change the default direction of communication paths (or associations in general)?

2) If not, is there a simple way to "batch-change" all the associations / communication-paths to a specific direction?

Thanks.
Title: Re: Changing [default] directions in associations
Post by: qwerty on February 09, 2013, 12:13:53 am
A batch change is possible, but it depends. If the model is empty except for the "wrong" directed associations and their elements you can execute a SQL:
Code: [Select]
UPDATE t_connector SET Direction = "Destination -> Source". If the elements are in a certain package you can construct a WHERE clause that identifies the elements and thus the relevant connectors.

q.
Title: Re: Changing [default] directions in associations
Post by: Geert Bellekens on February 11, 2013, 07:39:53 pm
There an default setting for associations  in Tools|Options|Links|General|Association default = source --> target

Geert
Title: Re: Changing [default] directions in associations
Post by: Ignacio G. T. on February 12, 2013, 04:52:00 am
Thanks, Geert. But the option you mention does not affect the communication paths. In fact, I had that option un-marked. :-(
Title: Re: Changing [default] directions in associations
Post by: Geert Bellekens on February 12, 2013, 05:02:20 am
Too bad, I guess an communication path is not an association.

Geert
Title: Re: Changing [default] directions in associations
Post by: adama on July 09, 2020, 05:36:58 am
Many moons gone by. Anybody know where Tools|Options|Links|General|Association default is in the ribbon?
Title: Re: Changing [default] directions in associations
Post by: qwerty on July 09, 2020, 07:05:39 am
Which ribbon? 13.5, 14 or 15?

Desperately you can try the search option. Sometimes it finds what you are looking for.

q.
Title: Re: Changing [default] directions in associations
Post by: Eve on July 09, 2020, 08:41:28 am
Unfortunately the ribbon search only detects items directly within the ribbon.

The user preferences, which is where this option is found can be accessed from:

Start > Desktop > Preferences

Once there, the option is at:

Links > Association default = source -> target