Hi Alexander ,
Thanks for your interest in Essential Diagram. If your intention is to draw links to the ports at the top of the symbol then please refer to the following code snippet
//In Initialize component
this.diagram1.Model.LineRoutingEnabled=true;
//In AddLink Button click event
LinkCmd linkcmd = new LinkCmd();
for (int i = 0; i <=4; i++)
{
Link link = new Link(Link.Shapes.OrthogonalLine);
linkcmd.SourcePort = rectangle.Ports[i];
linkcmd.TargetPort = roundrect.Ports[i];
linkcmd.Link = link;
this.diagram1.Controller.ExecuteCommand(linkcmd);
}
Please refer to the attached sample. In this sample when you click on "AddSymbols" button you can load 2 symbols and when you click on the "Add Link" button then the link should be connected only on to ports on the top of the symbols.
I hope this will meet your requirement. Please give us some more details about your requirement or provide us some screen shots if this doesn't helps.
Regards,
Nagaraj
Dynamic Link.zip