We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

ConnetionPointPlace Closest

I am using the following code to connect shapes on the diagram and it is working, but because the connection point is set as center you can not see the arrows. Is there a way to find the “closest” connectionpoint and use that for the linking?

var conid = diagram.AddShape(shape, "Dynamic connector", NewPage.ID);

// Set dynamic connector appearance
NewPage.ConnectShapesViaConnector(Shapes[c.Start_ID].ID, Aspose.Diagram.Manipulation.ConnectionPointPlace.Center, Shapes[c.End_ID].ID, Aspose.Diagram.Manipulation.ConnectionPointPlace.Center, conid);


Thank you for contacting support.

Would you please share source and generated files where arrows are not appearing fine, along with a code snippet replicating this behavior so that we may investigate further to help you out. Before sharing requested data, please ensure using Aspose.Diagram for .NET 18.8 in your environment.

The arrows are appearing correct at the center point as specified, the question has to do with finding the closest connection point.


We are looking into your requirements and will get back to you with our findings soon.


We would like to update you that you can find the connectionpoint in the shape’s connections by ConnectionPointPlace and if there’s no connections in the shape, you may try to find SuitableConnectionPoint.

We hope this will be helpful. Please feel free to contact us if you need any further assistance.