Hi Rohit,
Thanks for using Syncfusion products.
We suggest you to change the PinPoint of Line based on bounding rectangle of the block(node)which is added to the diagram. Please refer the below code snippet.
[C#]
//Node Collection Changed event
void EventSink_NodeCollectionChanged(CollectionExEventArgs evtArgs)
{
if (evtArgs.ChangeType == CollectionExChangeType.Insert)
{
if (evtArgs.Element != null)
{
Node node = (Node)evtArgs.Element;
//Get the Line
Node lineNode = diagram1.Model.GetChildByName("MyLine");
//Check the BoundingRectangle's of Line and Node(Block)
if (lineNode.BoundingRectangle.Top < node.BoundingRectangle.Bottom)
{
//Change the PinPoint of Line
lineNode.PinPoint = new PointF(lineNode.PinPoint.X,node.BoundingRectangle.Bottom + 20);
}
}
}
}
For your convenience, we have created a simple sample to demonstrate this and the same can be downloaded from the below link.
FSample-776916365.zipKindly try the above sample and let me know if this helps.
Regards,
Pandi Murugan A