GetBuiltInParameterGroup Method


Gets the BuiltInParameterGroup value corresponding to built-in parameter group identified by the given ForgeTypeId.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 22.0.0.0 (22.1.0.0)

Syntax

C#
[ObsoleteAttribute("This method is deprecated in Revit 2022 and may be removed in a future version of Revit. It will not be replaced, but until its removal it may be used to help migrate code that uses the 'BuiltInParameterGroup' enumeration to the ForgeTypeId class.")]
public static BuiltInParameterGroup GetBuiltInParameterGroup(
	ForgeTypeId groupTypeId
)
Visual Basic
<ObsoleteAttribute("This method is deprecated in Revit 2022 and may be removed in a future version of Revit. It will not be replaced, but until its removal it may be used to help migrate code that uses the 'BuiltInParameterGroup' enumeration to the ForgeTypeId class.")> _
Public Shared Function GetBuiltInParameterGroup ( _
	groupTypeId As ForgeTypeId _
) As BuiltInParameterGroup
Visual C++
[ObsoleteAttribute(L"This method is deprecated in Revit 2022 and may be removed in a future version of Revit. It will not be replaced, but until its removal it may be used to help migrate code that uses the 'BuiltInParameterGroup' enumeration to the ForgeTypeId class.")]
public:
static BuiltInParameterGroup GetBuiltInParameterGroup(
	ForgeTypeId^ groupTypeId
)

Parameters

groupTypeId
Type: Autodesk.Revit.DB ForgeTypeId
The parameter group identifier.

Return Value

The BuiltInParameterGroup value corresponding to the given parameter group identifier.

Exceptions

Exception Condition
Autodesk.Revit.Exceptions ArgumentException groupTypeId is not a built-in parameter group identifier. See IsBuiltInParameterGroup(ForgeTypeId) and GetParameterGroupTypeId(BuiltInParameter).
Autodesk.Revit.Exceptions ArgumentNullException A non-optional argument was NULL

See Also