Free Support Forum - aspose.com

Multiple Connections to the shapes with dynamic connector

I am trying to create 6 shapes named TC xx in the page named Two_HDAV and the shapes are added fine. When try to connect them through connection points using dynamic connector, there was some issues with connection between first shape and second shape where the connector did not join/connect properly.

So i have uploaded the sample code and output diagram(VenueBlockDiagramAutomationOutput) generated from this code.

I have also added the template diagram(VenueBlockDiagramAutomationTemplate)help.zip (352.5 KB)
before processing/modification by the code.

@KARTHICK_PKARTHICK
We were able to notice the issue in our environment while testing the scenario with Aspose.Diagram for JAVA 21.2 and logged it as DIAGRAMJAVA-50712 in our issue tracking system. We will further look into its details and keep you posted with the status of its correction.
Please be patient and spare us some time.
We are sorry for the inconvenience.

@KARTHICK_PKARTHICK
Please add this line of code before adding connection points to the shape, and the dynamic connector will be fine.

					      shapeinstance.getConnections().clear(); //add this line
					      shapeinstance.getConnections().add(left);
					      shapeinstance.getConnections().add(right);

Thank you. It worked.