Skip to content

Instantly share code, notes, and snippets.

@jbsarrodie
Created September 14, 2018 18:57
Show Gist options
  • Save jbsarrodie/3cfe6ae90b29696c55550ce3d4b3a577 to your computer and use it in GitHub Desktop.
Save jbsarrodie/3cfe6ae90b29696c55550ce3d4b3a577 to your computer and use it in GitHub Desktop.
#jArchi script to remove bendpoints on selected relationships
// RemoveBentpoints
//
// Requires jArchi - https://www.archimatetool.com/blog/2018/07/02/jarchi/
//
// This script takes a selection of visual objects as input, filter it to keep only relationships and remove all their bendpoints
//
// (c) 2018 Jean-Baptiste Sarrodie
$(selection).filter("relationship").filter(function(o) {return o.view}).each(function(o) {
var view = o.view;
var rel = o.concept;
var source = o.source;
var target = o.target;
o.delete();
view.add(rel, source, target);
})
@cadmageren
Copy link

Great work!! Very helpful

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment