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

Free Support Forum - aspose.com

Check how many 90 degree bends the connecting line has

Hi, two shapes can be connected by any of the multiple Connections and I want to pick the points so that the path between them would have the fewest 90 degree bends. Is it possible to check in the lib?


You can get incoming and outgoing connectors by using the below code snippet:

long[] In_connectedShapeIds = s.ConnectedShapes(Aspose.Diagram.ConnectedShapesFlags.ConnectedShapesIncomingNodes, null);
long[] Out_connectedShapeIds = s.ConnectedShapes(Aspose.Diagram.ConnectedShapesFlags.ConnectedShapesOutgoingNodes, null);

However, can you please share the sample diagram for our reference in case your requirements are not achieved by the above code? We will further test the scenario in our environment and address it accordingly.

Hi, I know what connectors I have and I know their ids, what I do not know is how many “bends” each connector has - and I would like to only pick that one and ignore/delete/whatever all the other connectors.


We need to investigate this requirement. Can you please share a sample diagram?