PressurePartConnectToPipe Method |
Connects the pipe/fitting/appurtenance to a specified pipe at specified connection ports.
Namespace: Autodesk.Civil.DatabaseServicesAssembly: AeccPressurePipesMgd (in AeccPressurePipesMgd.dll) Version: 13.8.0.292
Syntaxpublic abstract void ConnectToPipe(
int portIndex,
ObjectId pipeId,
int pipePortIndex
)
Public MustOverride Sub ConnectToPipe (
portIndex As Integer,
pipeId As ObjectId,
pipePortIndex As Integer
)
public:
virtual void ConnectToPipe(
int portIndex,
ObjectId pipeId,
int pipePortIndex
) abstract
Parameters
- portIndex Int32
- The connection port index of the pipe/fitting/appurtenance.
- pipeId ObjectId
- The object id of a pipe that is Autodesk.Civil.DatabaseServices.PressurePipe.
- pipePortIndex Int32
- The connection port index of the pipe.
ExceptionsException | Condition |
---|
[!:System.ArgumentException] |
Thrown when:
- The pipe/fitting/appurtenance connection port index is out of range.
- The pipe/fitting/appurtenance 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 pipe/fitting/appurtenance connection port.
|
Remarks
If the pipe/fitting/appurtenance already connects to pipes at other connection ports, then the connected port directions should not be changed.
Thus, the specified pipe/fitting/appurtenance connection port and pipe connection port will connects to each other but they probably do not match in direction after calling this API.
See Also