A connector is a line shape with two ends that can be attached to other shapes, and the application then keeps the line glued to them whenever either shape moves. Create one with
AddConnector, then call ConnectTo, passing the two shapes and the connection site on each, with sites counted from zero. An end left nil is written without a connection, which is what the application records when a connector’s shape has been deleted. Connection identifiers are resolved while the drawing part is written, so the endpoint objects need not carry numbers.