RenameParameter Method


Family Manager Rename Parameter Method

Rename a family parameter.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public void RenameParameter(
	FamilyParameter familyParameter,
	string name
)

Parameters

familyParameter FamilyParameter
The family parameter.
name String
The new name.
Exceptions
Exception Condition
ArgumentNullException Thrown when the input argument-"familyParameter" or "name"-is .
ArgumentException Thrown when the input argument-"familyParameter"-is invalid, or the input name string contains illegal characters, or duplicated with existing parameter name.
InvalidOperationException Thrown when trying to rename a built-in parameter or shared parameter.
Remarks
This operation is valid only for Family Parameters, and is invalid for Shared Parameters and Built-in Parameters.
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 →