Add Method


Adds member element ids to the mechanical equipment set.

Namespace: Autodesk.Revit.DB.Mechanical
Assembly: RevitAPI (in RevitAPI.dll) Version: 24.0.0.0 (24.0.0.0)
Since:  2019

Syntax

C#
public void Add(
	ISet<ElementId> elemIds
)
Visual Basic
Public Sub Add ( _
	elemIds As ISet(Of ElementId) _
)
Visual C++
public:
void Add(
	ISet<ElementId^>^ elemIds
)

Parameters

elemIds
Type: System.Collections.GenericISetElementId
Element ids to be added to the mechanical equipment set.

Exceptions

ExceptionCondition
Autodesk.Revit.ExceptionsArgumentException The valid members must have the same classification and system. They cannot be a member of existing set. -or- These elements are serially connected with each other, or with one of the set members.
Autodesk.Revit.ExceptionsArgumentNullException A non-optional argument was null

See Also