PressurePipeConnectToStructure Method |
Connects the pipe to specified structure.
Namespace: Autodesk.Civil.DatabaseServicesAssembly: AeccPressurePipesMgd (in AeccPressurePipesMgd.dll) Version: 13.8.0.292
Syntaxpublic void ConnectToStructure(
ObjectId structureId
)
Public Sub ConnectToStructure (
structureId As ObjectId
)
public:
void ConnectToStructure(
ObjectId structureId
)
Parameters
- structureId ObjectId
- The object id of structure that is Autodesk.Civil.DatabaseServices.Structure.
ExceptionsException | Condition |
---|
[!: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