StormWaterControlConnectToPipe(ObjectId, ConnectorPositionType, Vector2d) Method

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

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

Parameters

pipeId  ObjectId
The pipe to connect to.
positionType  ConnectorPositionType
The pipe position to connect, an enum value of Autodesk.Civil.DatabaseServices.ConnectorPositionType.
direction  Vector2d
The 2D direction from the pipe toward the stormwater control.
Exceptions
ExceptionCondition
ArgumentException Thrown when pipeId does not refer to an Autodesk.Civil.DatabaseServices.Pipe, or the direction is a zero-length vector.
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
Moves the corresponding pipe end point to the computed connection point without changing elevation.
See Also