Connects the pipe to specified structure.

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

Syntax

C#
public void ConnectToStructure(
	ObjectId structureId
)
Visual Basic
Public Sub ConnectToStructure ( _
	structureId As ObjectId _
)
Visual C++
public:
void ConnectToStructure(
	ObjectId structureId
)

Parameters

structureId
Type: ObjectId
The object id of structure that is Autodesk.Civil.DatabaseServices.Structure.

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.

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.

See Also