RemoveEntry Method


Removes an entry whose parameter value is the same as the input from the scheme

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 22.0.0.0 (22.1.0.0)
Since: 2022

Syntax

C#
public void RemoveEntry(
	ColorFillSchemeEntry entry
)
Visual Basic
Public Sub RemoveEntry ( _
	entry As ColorFillSchemeEntry _
)
Visual C++
public:
void RemoveEntry(
	ColorFillSchemeEntry^ entry
)

Parameters

entry
Type: Autodesk.Revit.DB ColorFillSchemeEntry
The entry to remove.

Remarks

The entry can not be removed if it is in use.

Exceptions

Exception Condition
Autodesk.Revit.Exceptions ArgumentException The entry cannot be removed from the scheme.
Autodesk.Revit.Exceptions ArgumentNullException A non-optional argument was null

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 →