Hello, @asad.ali. Thanks for reply, last suggestion works for the sandbox project I’ve attached earlier and connectors remain on their shapes now. But the code in the main project was refactored - the structure of a data model (that is used for building a diagram shapes) changed a little. And addConnections(Shape shape) still have no effect for the resulted drawing
I have updated the sources in the sandbox project, so you can investigate new scenario:
The main change is that I have created abstract class Box.java for rectangular Shape which recursively adds child shapes in its group (it is possible that one shape can contain multiple ones). Also reusable classes and code were moved to common folder.
Refer to IFDDiagram.java, line 83-86, where all shapes are drawn and connected. Also, please check Node, Box, Edge classes where I use Aspose.Diagram (18.7) library for building shapes and connectors.
I assume that one more connections bug appeared or I use Aspose.Diagram not in the right way.
Please, share your findings on the new code.
!To check the scenario please, run Runner.java and also don’t forget to attach your Aspose.Diagram.lic file to \src\main\resources\templ. Resulting drawing will be added to the project root.