Creates a new analytical connection between two open connectors.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 24.0.0.0 (24.0.0.0)
Since: 2018
Syntax
C# |
---|
|
Visual Basic |
---|
|
Visual C++ |
---|
|
Parameters
- doc
- Type: Autodesk.Revit.DBDocument
The document where the new element is created.
- typeId
- Type: Autodesk.Revit.DBElementId
The type of new analytical connection.
- startConnector
- Type: Autodesk.Revit.DBConnector
The open connector on the equipment side, whose level is inherited by the analytical connection.
- endConnector
- Type: Autodesk.Revit.DBConnector
The open connector on the network.
Return Value
The newly created analytical connection element.Exceptions
Exception | Condition |
---|---|
Autodesk.Revit.ExceptionsArgumentException | Invalid connection type. -or- The connector does not support analytical connection. |
Autodesk.Revit.ExceptionsArgumentNullException | A non-optional argument was null |