Connect one pipe to another structure. If needed, disconnect the original one and move the pipe to that structure for connecting.
public void ConnectToStructure( ConnectorPositionType sourcePosition, ObjectId destinationStructureId, bool force )
Public Sub ConnectToStructure ( sourcePosition As ConnectorPositionType, destinationStructureId As ObjectId, force As Boolean )
public: void ConnectToStructure( ConnectorPositionType sourcePosition, ObjectId destinationStructureId, bool force )