Archi Forum

Archi Plug-ins => jArchi => Topic started by: gwaters22 on July 20, 2021, 01:18:17 AM

Title: Script to reset relationship lines
Post by: gwaters22 on July 20, 2021, 01:18:17 AM
Hey team
I have rearranged many of elements and now the relationship lines are all messed up,
My options are to use the Manhattan but that does not go around elements in most cases so line cris-cross. I want to manually map my relationship lines between elements, the challenges are that I have too many elements that moved around so my view is so messed up unless I use  the Manhattan options which does not always give best path around elements and you can't move lines  around with Manhattan.

Does anybody have script to reset relationship lines just to be straight and allow me bending them for desired look?

I wish there is options to use Manhattan with ability to customize after it will make modeling easier and flexible
Title: Re: Script to reset relationship lines
Post by: projetnumero9 on July 20, 2021, 07:44:55 AM
Hi,
this gist should help you in the process : https://gist.github.com/search?q=remove+bendpoints+%23jarchi+extension%3Aajs&ref=searchresults (https://gist.github.com/search?q=remove+bendpoints+%23jarchi+extension%3Aajs&ref=searchresults)

Regards,
Title: Re: Script to reset relationship lines
Post by: Phil Beauvoir on July 20, 2021, 08:18:00 AM
You can also delete all bend-points for a connection:

https://github.com/archimatetool/archi-scripting-plugin/wiki/jArchi-Object#deleteallbendpoints
Title: Re: Script to reset relationship lines
Post by: gwaters22 on July 20, 2021, 16:39:24 PM
Thank you both very much. This has been very helpful.