SetValueString Method


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 SetValueString(
	FamilyParameter familyParameter,
	string value
)
Visual Basic
Public Sub SetValueString ( _
	familyParameter As FamilyParameter, _
	value As String _
)
Visual C++
public:
void SetValueString(
	FamilyParameter^ familyParameter, 
	String^ value
)

Parameters

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

Exceptions

ExceptionCondition
Autodesk.Revit.ExceptionsArgumentException Thrown when the input argument-"familyParameter" or "value"-is a null reference (Nothing in Visual Basic).
Autodesk.Revit.ExceptionsArgumentException Thrown when the input argument-"familyParameter"-is an invalid family parameter. or the input argument-"value"-is an illegal string.
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 it is not a value type, or the current family type is invalid.

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 →