I am working in Enterprise Architect C# add-ins. I need to arrange the elements and connectors through code such that there is no overlapping of connectors. I have set the Line Style as Auto Routing for the diagram links.
Is there a API available in EA for setting the starting point/ending point of connector as source element's dimension value such that the connector starts from the top of the element.
Kindly Help. Thanks in advance.
Edit:I have tried updating through API as follows but am not able to see change in connector starting position:
for (short i = 0; i < Diagram.DiagramLinks.Count; i++)
{
EA.DiagramLink dl = Diagram.DiagramLinks.GetAt(i);
//set the line style and update
dl.LineStyle = EA.LinkLineStyle.LineStyleAutoRouting;
dl.Geometry = "EDGE=4;";
dl.Update();
Diagram.Update();
}