Create Method


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#
public static MEPAnalyticalConnection Create(
	Document doc,
	ElementId typeId,
	Connector startConnector,
	Connector endConnector
)
Visual Basic
Public Shared Function Create ( _
	doc As Document, _
	typeId As ElementId, _
	startConnector As Connector, _
	endConnector As Connector _
) As MEPAnalyticalConnection
Visual C++
public:
static MEPAnalyticalConnection^ Create(
	Document^ doc, 
	ElementId^ typeId, 
	Connector^ startConnector, 
	Connector^ endConnector
)

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

ExceptionCondition
Autodesk.Revit.ExceptionsArgumentException Invalid connection type. -or- The connector does not support analytical connection.
Autodesk.Revit.ExceptionsArgumentNullException A non-optional argument was null

See Also

ArchiLabs Desktop

Put AI to work inside Revit.

Give Desktop your instructions and project files to build Revit families, update model elements, and create views and schedules. Works directly in Revit and AutoCAD.

Explore Desktop →