IsValidRegionCode Method


Parameter Utils Is Valid Region Code Method

Checks whether a given region code is allowed to identify a region where an account containing parameter definitions may exist.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 27.0.4.0 (27.0.4.0)
Syntax
public static bool IsValidRegionCode(
	string region
)

Parameters

region String
The region to check.

Return Value

Boolean
False if the region is invalid, true otherwise.
Exceptions
Exception Condition
ArgumentNullException A non-optional argument was null
Remarks
In order to support new regions in the future, this method does not use a fixed list. Supported regions include "US", "EMEA", "IRL", "APAC", "AUS", "GBR", "DEU", "JPN", "CAN", and "IND". A return value of true does not indicate that a given region actually exists.
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 →