Switch direction of (a) connection(s)

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

Previous topic - Next topic


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

Phil Beauvoir

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;

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