IsValidThickness Method


Checks if the input value is valid to be supplied as a thickness (for an extrusion, or blend, or wall layer, or similar geometric construct).

Namespace: Autodesk.Revit.ApplicationServices
Assembly: RevitAPI (in RevitAPI.dll) Version: 2015.0.0.0 (2015.0.0.0)
Since: 2015

Syntax

C#
public static bool IsValidThickness(
	double thickness
)
Visual Basic
Public Shared Function IsValidThickness ( _
	thickness As Double _
) As Boolean
Visual C++
public:
static bool IsValidThickness(
	double thickness
)

Parameters

thickness
Type: System Double
The input value.

Return Value

True if the input value is valid for thickness; false otherwise.

Remarks

This checks two conditions:
  • The value is greater than or equal to the minimum thickness allowed in Revit for these types of geometric constructs.
  • The value is less than or equal to the maximum length/distance allowed by Revit for elements.

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 →