Connects the fitting to a specified pipe at specified connection ports.

Namespace: Autodesk.Civil.DatabaseServices
Assembly: AeccPressurePipesMgd (in AeccPressurePipesMgd.dll) Version: 13.4.2516.0

Syntax

C#
public void ConnectToPipe(
	int portIndex,
	ObjectId pipeId,
	int pipePortIndex
)
Visual Basic
Public Sub ConnectToPipe ( _
	portIndex As Integer, _
	pipeId As ObjectId, _
	pipePortIndex As Integer _
)
Visual C++
public:
void ConnectToPipe(
	int portIndex, 
	ObjectId pipeId, 
	int pipePortIndex
)

Parameters

portIndex
Type: System..::..Int32
The connection port index of the fitting.
pipeId
Type: ObjectId
The object id of a pipe that is Autodesk.Civil.DatabaseServices.PressurePipe.
pipePortIndex
Type: System..::..Int32
The connection port index of the pipe.

Remarks

If the fitting already connects to pipes at other connection ports, then the connected port directions should not be changed. Thus, the specified fitting connection port and pipe connection port will connects to each other but they probably do not match in direction after calling this API.

Exceptions

ExceptionCondition
[!:System.ArgumentException] Thrown when:
  • The fitting connection port index is out of range.
  • The fitting connection port is not open.
  • The pipe is not from the same network.
  • The pipe connection port index is out of range.
  • The pipe connection port is not open.
[!:System.InvalidOperationException] Thrown when the pipe is shorter than the Engagement Length of the fitting connection port.

See Also