Rename a family parameter.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 2015.0.0.0 (2015.0.0.0)
Syntax
| C# |
|---|
|
| Visual Basic |
|---|
|
| Visual C++ |
|---|
|
Parameters
- familyParameter
- Type: Autodesk.Revit.DB FamilyParameter
The family parameter.
- name
- Type: System String
The new name.
Remarks
This operation is valid only for Family Parameters, and is invalid for Shared Parameters and Built-in Parameters.
Exceptions
| Exception | Condition |
|---|---|
| Autodesk.Revit.Exceptions ArgumentNullException | Thrown when the input argument-"familyParameter" or "name"-is a null reference ( Nothing in Visual Basic) . |
| Autodesk.Revit.Exceptions ArgumentException | Thrown when the input argument-"familyParameter"-is invalid, or the input name string contains illegal characters, or duplicated with existing parameter name. |
| Autodesk.Revit.Exceptions InvalidOperationException | Thrown when trying to rename a built-in parameter or shared parameter. |