IsValidRoughness Method


Identifies if the input roughness is valid.

Namespace: Autodesk.Revit.DB.Mechanical
Assembly: RevitAPI (in RevitAPI.dll) Version: 24.0.0.0 (24.0.0.0)
Since:  2012

Syntax

C#
public bool IsValidRoughness(
	double roughness
)
Visual Basic
Public Function IsValidRoughness ( _
	roughness As Double _
) As Boolean
Visual C++
public:
bool IsValidRoughness(
	double roughness
)

Parameters

roughness
Type: SystemDouble
The roughness to check.

Return Value

True if the value is acceptable, false otherwise.

Remarks

Roughness should be at least equal to or larger than 0.

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 →