Set Method (FamilyParameter, String)


Set the string value of a family parameter of the current family type.

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

Syntax

C#
public void Set(
	FamilyParameter familyParameter,
	string value
)
Visual Basic
Public Sub Set ( _
	familyParameter As FamilyParameter, _
	value As String _
)
Visual C++
public:
void Set(
	FamilyParameter^ familyParameter, 
	String^ value
)

Parameters

familyParameter
Type: Autodesk.Revit.DBFamilyParameter
A family parameter of the current type.
value
Type: SystemString
The new value for family parameter.

Exceptions

ExceptionCondition
Autodesk.Revit.ExceptionsArgumentNullException Thrown when the input argument-"familyParameter"-is a null reference (Nothing in Visual Basic).
Autodesk.Revit.ExceptionsArgumentException Thrown when the input argument-"familyParameter"-is an invalid family parameter.
Autodesk.Revit.ExceptionsArgumentOutOfRangeException Thrown when the input argument-"familyParameter"-is out of range.
Autodesk.Revit.ExceptionsInvalidOperationException Thrown when the family parameter is determined by formula, or the current family type is invalid.

See Also

ArchiLabs

Stop fighting Revit automation.

Build repeatable BIM design and documentation workflows with scripts, data, and AI in one place, without wrestling brittle one-off automations.

Try ArchiLabs →