AddToCircuit Method


Add a set of exist components to the Electrical System.

Namespace: Autodesk.Revit.DB.Electrical
Assembly: RevitAPI (in RevitAPI.dll) Version: 24.0.0.0 (24.0.0.0)

Syntax

C#
public bool AddToCircuit(
	ElementSet components
)
Visual Basic
Public Function AddToCircuit ( _
	components As ElementSet _
) As Boolean
Visual C++
public:
bool AddToCircuit(
	ElementSet^ components
)

Parameters

components
Type: Autodesk.Revit.DBElementSet
The components added to the electrical system.

Return Value

If successful, all the components will add to the system. Otherwise a null reference (Nothing in Visual Basic) is returned.

Remarks

This method will only function with the Autodesk Revit MEP application.

See Also

ArchiLabs

Stop fighting Revit automation.

Build repeatable BIM design and documentation workflows with scripts, data, and AI in one place, without wrestling brittle one-off automations.

Try ArchiLabs →