Switch direction of (a) connection(s)

Started by JoCriSem, July 08, 2024, 07:55:03 AM

Previous topic - Next topic

JoCriSem

Anyone has a script to switch the direction of selected connections or can tell me how to do that?
Thanks.

Phil Beauvoir

#1
Assuming you have a connection selected in the UI:

var relation = selection.first().concept;
var target = relation.target;
relation.target = relation.source;
relation.source = target;

Phil
If you value and use Archi, please consider making a donation!
Ask your ArchiMate related questions to the ArchiMate Community's Discussion Board.