Hello, I would like to connect two rectangles. I used the next code:
shapeRec2 = diagram.add_shape(4.0, 4, 4, 2, ‘Rectangle’, 0)
shapeRec3 = diagram.add_shape(4.0, 2, ‘Rectangle’, 0)
shapeIdCo = diagram.add_shape(1, 1, ‘Dynamic connector’, 0)
diagram.pages[0].connect_shapes_via_connector(shapeRec3, 3, shapeRec2, 2, shapeIdCo)
Diagram is beatiful, however, my dynamic connector is line, not arrow in this case. I created an arrow (shape “45 degree single”) instead of “Dynamic connector”. In this case I received a strange picture using commands:
shapeIdCo = diagram.add_shape(1, 1, ‘45 degree single’, 0)
diagram.pages[0].connect_shapes_via_connector(shapeRec3, 3, shapeRec2, 2, shapeIdCo)
How should I connect shapes using arrow ‘45 degree single’? Or how can I add arrow to dynamic connector? Thank you.