Remove Method


Remove an element from the selected element set.

Namespace: Autodesk.Revit.UI.Selection
Assembly: RevitAPIUI (in RevitAPIUI.dll) Version: 2015.0.0.0 (2015.0.0.0)

Syntax

C#
public virtual void Remove(
	Element element
)
Visual Basic
Public Overridable Sub Remove ( _
	element As Element _
)
Visual C++
public:
virtual void Remove(
	Element^ element
)

Parameters

element
Type: Autodesk.Revit.DB Element
The element to be removed.

Remarks

This function will remove the specified from the selected element set, just like de-select it from the UI.

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 →