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

Free Support Forum - aspose.com

Links between objects and their path


I’m looking to use aspose.diagram to create a layout consisting of objects and links. I think I know how to tie the links to the objects dynamically but how can I avoid the links taking any path they like. The diagram 1 attached shows what I’m trying to achieve, diagram 2 shows what happens when the links are first drawn in Visio (using the size and position parameters). Can I use aspose.diagram to get the diagram 1 layout rather than something that looks like diagram 2?



Hi Matthew,

Thank you for contacting support. There are many ways to set the layout of connectors in Microsoft Visio application. Aspose.Diagram API mimics the behavior of Microsoft Visio. You can change the appearance or reroute the connectors as narrated in these help topics: Set Appearance of the Connector Type Shape in Visio and Select Reroute Option of the Connector Shape

You may also edit the geometry of a shape as shown in this help topic: Working with Geometry Section

Please let us know in case of any confusion or questions.