How do I stop link from finding shortest path?

Hello, I am in the process of making a circuit diagram.
I want to user to be able to drag & drop different shapes and connect them via links.
But I don’t want the links to automatically find the shortest path. As soon as you create a link between 2 nodes it finds the shortest path and sometimes it jumps to another spot in one or both of the nodes. Instead I want it to just stay connected at the spot the user used when creating the link.

I tried looking into toSpot and fromSpot, but I couldn’t get that to work. I still want all ports to be connected to and from.

Yes you probably want to save the Link.fromSpot and toSpot for each Link. I can create a sample for you later today.

Wait – do your nodes have multiple (separate) ports? Are the links not staying connected with the intended ports? Maybe you simply haven’t set GraphLinksModel.linkFromPortIdProperty and linkToPortIdProperty on the model that you are showing.

I looked through my code again and I indeed didn’t have GraphLinksModel.linkFromPortIdProperty and linkToPortIdProperty set.

Now it works as I wanted it to.
Thank you Walter