MEPAnalyticalConnection.Create Method

MEPAnalyticalConnectionCreate Method

Creates a new analytical connection between two open connectors.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.0.4.0 (26.0.4.0)
Syntax
public static MEPAnalyticalConnection Create(
	Document doc,
	ElementId typeId,
	Connector startConnector,
	Connector endConnector
)
Public Shared Function Create ( 
	doc As Document,
	typeId As ElementId,
	startConnector As Connector,
	endConnector As Connector
) As MEPAnalyticalConnection
public:
static MEPAnalyticalConnection^ Create(
	Document^ doc, 
	ElementId^ typeId, 
	Connector^ startConnector, 
	Connector^ endConnector
)
static member Create : 
        doc : Document * 
        typeId : ElementId * 
        startConnector : Connector * 
        endConnector : Connector -> MEPAnalyticalConnection 

Parameters

doc  Document
The document where the new element is created.
typeId  ElementId
The type of new analytical connection.
startConnector  Connector
The open connector on the equipment side, whose level is inherited by the analytical connection.
endConnector  Connector
The open connector on the network.

Return Value

MEPAnalyticalConnection
The newly created analytical connection element.
Exceptions
ExceptionCondition
ArgumentException Invalid connection type. -or- The connector does not support analytical connection.
ArgumentNullException A non-optional argument was null
See Also