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.
Namespace: Autodesk.Civil.DatabaseServices
Assembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.8.0.280
Syntax
C#
public void ConnectToPipe( ConnectorPositionType sourceType, ObjectId destinationPipeId, ConnectorPositionType destinationType, ObjectId structureFamilyId, ObjectId structureSizeId, ref ObjectId newStructureId, bool applyRules, bool force )
VB
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 )
C++
public: void ConnectToPipe( ConnectorPositionType sourceType, ObjectId destinationPipeId, ConnectorPositionType destinationType, ObjectId structureFamilyId, ObjectId structureSizeId, ObjectId% newStructureId, bool applyRules, bool force )
Parameters
- sourceType ConnectorPositionType
- If start or end point to connect of source pipe.
- destinationPipeId ObjectId
- The destination pipe for connection.
- destinationType ConnectorPositionType
- If start or end point to connect of destination pipe.
- structureFamilyId ObjectId
- Family id of the needed structure.
- structureSizeId ObjectId
- Object id of Structure Size.
- newStructureId ObjectId
- The new structure id.
- applyRules Boolean
- Whether needed to apply the rules.
- force Boolean
- Whether force the pipe to disconnect the original connected structure.