connect_shapes_via_connector method

connect_shapes_via_connector(shape_from, place_from, shape_to, place_to, connector)

Connect shapes via connector.

def connect_shapes_via_connector(self, shape_from, place_from, shape_to, place_to, connector):
    ...
ParameterTypeDescription
shape_fromShapeThe shape where the connector begins Shape.
place_fromaspose.diagram.manipulation.ConnectionPointPlaceThe location on the first shape where connector will be connected ConnectionPointPlace.
shape_toShapeThe shape where the connector ends Shape.
place_toaspose.diagram.manipulation.ConnectionPointPlaceThe location on the second shape where connector will be connected ConnectionPointPlace.
connectorShapeThe shape with type Dynamic connector Shape.

connect_shapes_via_connector(shape_from_id, place_from, shape_to_id, place_to, connector_id)

Connect shapes via connector.

def connect_shapes_via_connector(self, shape_from_id, place_from, shape_to_id, place_to, connector_id):
    ...
ParameterTypeDescription
shape_from_idintThe ID of shape where the connector begins Shape.
place_fromaspose.diagram.manipulation.ConnectionPointPlaceThe location on the first shape where connector will be connected ConnectionPointPlace.
shape_to_idintThe ID of shape where the connector ends Shape.
place_toaspose.diagram.manipulation.ConnectionPointPlaceThe location on the second shape where connector will be connected ConnectionPointPlace.
connector_idintThe ID of shape with type Dynamic connector Shape.

connect_shapes_via_connector(shape_from_id, from_connection_name, shape_to_id, to_connection_name, connector_id)

Connect shapes via connector.

def connect_shapes_via_connector(self, shape_from_id, from_connection_name, shape_to_id, to_connection_name, connector_id):
    ...
ParameterTypeDescription
shape_from_idintThe ID of shape where the connector begins Shape.
from_connection_namestrThe connection name on the first shape where connector will be connected .
shape_to_idintThe ID of shape where the connector ends Shape.
to_connection_namestrThe connection name on the second shape where connector will be connected .
connector_idintThe ID of shape with type Dynamic connector Shape.

See Also