Find LinkData and Focus

Hello good afternoon, basically that, I want to focus on a Link,

i try:

var node1 = myDiagram.findNodeForKey(origen);
var node2 = myDiagram.findNodeForKey(destino);

var arrayLinks = node1.findLinksBetween(node2);

while ( { 
    var link = arrayLinks.value;
    var dataLink =;

I use those functions to search and focus on a Node, but it doesn’t work with LinkData

At the Diagram level you should generally be dealing with Parts (i.e. Nodes and Links) and GraphObjects, not with data in models.;