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

Free Support Forum - aspose.com

Need multiple connector points for the rectangle shape

Hi Team ,

Can you please implement multiple connector points for the rectangle shape ? Currently it supports only Up , Down , Left and Right connection points.



A feature request as DIAGRAMJAVA-50819 has been logged in our issue tracking system for the sake of implementation. We will further investigate its feasibility and let you know as soon as it is resolved. Please give us some time.


Please try to use the below code in order to achieve your requirements:

Connection connection = new Connection();
ShapeCollection shapes = diagram.getPages().get(0).getShapes();
Shape shape = shapes.get(0);
//set index of connection
connection.getY().setValue(shape.getXForm().getHeight().getValue() -0.1);