Connect one pipe to another pipe. If needed, disconnect the original one and move the pipe to that pipe for connecting and add a structure.
public void ConnectToPipe( ConnectorPositionType sourceType, ObjectId destinationPipeId, ConnectorPositionType destinationType, ObjectId structureFamilyId, ObjectId structureSizeId, ref ObjectId newStructureId, bool applyRules, bool force )
Public Sub ConnectToPipe ( sourceType As ConnectorPositionType, destinationPipeId As ObjectId, destinationType As ConnectorPositionType, structureFamilyId As ObjectId, structureSizeId As ObjectId, ByRef newStructureId As ObjectId, applyRules As Boolean, force As Boolean )
public: void ConnectToPipe( ConnectorPositionType sourceType, ObjectId destinationPipeId, ConnectorPositionType destinationType, ObjectId structureFamilyId, ObjectId structureSizeId, ObjectId% newStructureId, bool applyRules, bool force )