StormWaterControlConnectToPipe(ObjectId, ConnectorPositionType) Method

Connects the stormwater control to a specified pipe at the given position.

Namespace: Autodesk.Civil.DatabaseServices
Assembly: AeccDrainageDesignMgd (in AeccDrainageDesignMgd.dll) Version: 13.9.960.0
Syntax
public void ConnectToPipe(
	ObjectId pipeId,
	ConnectorPositionType positionType
)

Parameters

pipeId  ObjectId
The pipe to connect to.
positionType  ConnectorPositionType
The pipe position to connect, an enum value of Autodesk.Civil.DatabaseServices.ConnectorPositionType.
Exceptions
ExceptionCondition
ArgumentException Thrown when pipeId does not refer to an Autodesk.Civil.DatabaseServices.Pipe.
InvalidOperationException Thrown when the pipe is already connected to a structure or stormwater control at the position or the connection point cannot be calculated.
Remarks
Automatically derives the connection direction from the pipe toward the stormwater control location and moves the corresponding pipe end point to the computed connection point without changing elevation.
See Also