MEPAnalytical |
Creates new analytical connections between the equipment connector and the nearest point on the curves.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)

public static ISet<ElementId> CreateMultipleConnections(
Document doc,
ElementId typeId,
IList<Connector> equipmentOpenConnectors,
IList<ElementId> curveIdsToConnect
)
Parameters
- doc Document
- The document where the new elements are created.
- typeId ElementId
- The type of new analytical connections.
- equipmentOpenConnectors IList Connector
- The open equipment connectors to be analytically connected.
- curveIdsToConnect IList ElementId
- The curves which the equipment is connected to.
Return Value
ISet ElementIdThe new analytical connection elements.

Exception | Condition |
---|---|
ArgumentException | Invalid connection type. -or- Not all connectors support the analytical connection. -or- No connector included. -or- Not all elements are valid curve ids. -or- No curve included. |
ArgumentNullException | A non-optional argument was null |
