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.4.2516.0

Syntax

C#
public void ConnectToPipe(
	ConnectorPositionType sourceType,
	ObjectId destinationPipeId,
	ConnectorPositionType destinationType,
	ObjectId structureFamilyId,
	ObjectId structureSizeId,
	ref ObjectId newStructureId,
	bool applyRules,
	bool force
)
Visual Basic
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 _
)
Visual C++
public:
void ConnectToPipe(
	ConnectorPositionType sourceType, 
	ObjectId destinationPipeId, 
	ConnectorPositionType destinationType, 
	ObjectId structureFamilyId, 
	ObjectId structureSizeId, 
	ObjectId% newStructureId, 
	bool applyRules, 
	bool force
)

Parameters

sourceType
Type: Autodesk.Civil.DatabaseServices..::..ConnectorPositionType
If start or end point to connect of source pipe.
destinationPipeId
Type: ObjectId
The destination pipe for connection.
destinationType
Type: Autodesk.Civil.DatabaseServices..::..ConnectorPositionType
If start or end point to connect of destination pipe.
structureFamilyId
Type: ObjectId
Family id of the needed structure.
structureSizeId
Type: ObjectId
Object id of Structure Size.
newStructureId
Type: ObjectId%
The new structure id.
applyRules
Type: System..::..Boolean
Whether needed to apply the rules.
force
Type: System..::..Boolean
Whether force the pipe to disconnect the original connected structure.

See Also