IsValidGlobalParameter Method


Tests whether an ElementId is of a global parameter in the given document.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 16.0.0.0 (16.0.0.0)
Since: 2016 Subscription Update

Syntax

C#
public static bool IsValidGlobalParameter(
	Document document,
	ElementId parameterId
)
Visual Basic
Public Shared Function IsValidGlobalParameter ( _
	document As Document, _
	parameterId As ElementId _
) As Boolean
Visual C++
public:
static bool IsValidGlobalParameter(
	Document^ document, 
	ElementId^ parameterId
)

Parameters

document
Type: Autodesk.Revit.DB Document
The document containing the global parameter.
parameterId
Type: Autodesk.Revit.DB ElementId
Id of a global parameter

Return Value

Returns True if the Id is of a valid global parameter; False otherwise.

Exceptions

Exception Condition
Autodesk.Revit.Exceptions ArgumentNullException A non-optional argument was NULL

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 →