Diferent Point or port connection to node Automatically

ok. How i now when some line is over other line?

You need to look at the segments of all of the links.

Hi walter… but I need do this, because always connect in the border group

Can I define the last length line of the segment? |-------->

Yes, that is what fromEndSegmentLength and toEndSegmentLength and Link.computeEndSegmentLength are for.

See for example the Dynamic Ports sample, Dynamic Ports, which overrides Link | GoJS API.

However, Link.computeEndSegmentLength already does this for links that connect with a port whose fromSpot or toSpot are …Side. It’s only needed in the Dynamic Ports sample because there is more than one port one each side of a node.

Thank you Walter