A connector is a line shape whose two ends can be attached to other shapes: the application then keeps the line glued to them when either shape moves. Create one with
AddConnector, then call ConnectTo with the two shapes and the connection site on each, sites counted from zero. An end left nil is written without a connection, which is what the application records for a connector whose shape was deleted. The connection identifiers are resolved while the drawing part is written, so the endpoint objects do not have to carry numbers.