Clears the parameter to its initial value.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.2.0.0 (26.2.0.0)
Syntax
C#
public bool ClearValue()
Return Value
BooleanThe 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. |