PressurePipeConnectToStructure Method

Connects the pipe to specified structure.

Namespace: Autodesk.Civil.DatabaseServices
Assembly: AeccPressurePipesMgd (in AeccPressurePipesMgd.dll) Version: 13.8.0.292
Syntax
public void ConnectToStructure(
	ObjectId structureId
)

Parameters

structureId  ObjectId
The object id of structure that is Autodesk.Civil.DatabaseServices.Structure.
Exceptions
ExceptionCondition
[!:System.InvalidOperationException] Thrown when:
  • The pipe has no open connection port. Open means neither pressure part nor structure is connected.
  • The structure has connected to another pipe. The connected pipe and this pipe are in the same pipe run.
Remarks
It will find open connection port of the pipe to connect. If more than one open port, then find the closest one, otherwise fail to connect.
See Also