Erase 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 override int Erase(
	Element element
)
Visual Basic
Public Overrides Function Erase ( _
	element As Element _
) As Integer
Visual C++
public:
virtual int Erase(
	Element^ element
) override

Parameters

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

Return Value

Returns count of the elements to be erased from the selected element set.

Remarks

This function will do same task as Remove.

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 →