IsValidExternalDefinition Method


Checks that an ExternalDefinition (shared parameter) may be used as a Rebar Shape parameter.

Namespace: Autodesk.Revit.DB.Structure
Assembly: RevitAPI (in RevitAPI.dll) Version: 2015.0.0.0 (2015.0.0.0)
Since: 2012

Syntax

C#
public static bool IsValidExternalDefinition(
	ExternalDefinition param
)
Visual Basic
Public Shared Function IsValidExternalDefinition ( _
	param As ExternalDefinition _
) As Boolean
Visual C++
public:
static bool IsValidExternalDefinition(
	ExternalDefinition^ param
)

Parameters

param
Type: Autodesk.Revit.DB ExternalDefinition
Definition of a shared parameter.

Return Value

True if the definition is of type Length, false otherwise.

Remarks

A Rebar Shape parameter must be an ExternalDefinition with a ParameterType of Length.

Exceptions

Exception Condition
Autodesk.Revit.Exceptions ArgumentNullException A non-optional argument was a null reference ( Nothing in Visual Basic)

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 →