IsValidValue Method


Checks that the value is a valid value for this property.

Namespace: Autodesk.Revit.DB.Visual
Assembly: RevitAPI (in RevitAPI.dll) Version: 18.0.0.0 (18.2.0.0)
Since: 2018.1

Syntax

C#
public bool IsValidValue(
	int value
)
Visual Basic
Public Function IsValidValue ( _
	value As Integer _
) As Boolean
Visual C++
public:
bool IsValidValue(
	int value
)

Parameters

value
Type: System Int32
The value to be checked.

Return Value

True if the value is valid for the property.

Exceptions

Exception Condition
Autodesk.Revit.Exceptions InvalidOperationException Cannot check validity for a property not being edited in AppearanceAssetEditScope.

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 →