Creates a connection between the two supplied datapoints (DatapointFrom & DatapointTo).
It will fail to do so if the DatapointFrom is not an output-side datapoint, the DatapointTo is not an input-side datapoint, or a connection between these two datapoints already exists.
CreateConnection(in DatapointFrom:Datapoint, in DatapointTo:Datapoint) -> Connection
The datapoint from which the connection is to be created.
The destination datapoint.
The object is no longer valid.
Invalid address for the return parameter was specified.
Changing the document not allowed. It is read-only.
Failed creating the connection.