ClearValue Method


Parameter Clear Value Method

Clears the parameter to its initial value.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public bool ClearValue()

Return Value

Boolean
The ClearValue method will return True if the parameter was successfully cleared to its initial value, otherwise false.
Exceptions
Exception Condition
InvalidOperationException The parameter is read-only, or the parameter is not a shared parameter, or the shared parameter has HideWhenNoValue set to false.
Remarks
This method will only succeed for Shared parameters that have their HideWhenNoValue property set to true.
See Also
ArchiLabs Desktop

Put AI to work inside Revit.

Give Desktop your instructions and project files to build Revit families, update model elements, and create views and schedules. Works directly in Revit and AutoCAD.

Explore Desktop →