Revit 2021 API |
FamilyManager..::..Set Method (FamilyParameter, Double) |
FamilyManager Class See Also |
Set the double value of a family parameter of the current family type.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 21.0.0.0 (21.0.0.0)
Syntax
C# |
---|
public void Set( FamilyParameter familyParameter, double value ) |
Visual Basic |
---|
Public Sub Set ( _ familyParameter As FamilyParameter, _ value As Double _ ) |
Visual C++ |
---|
public: void Set( FamilyParameter^ familyParameter, double value ) |
Parameters
- familyParameter
- Type: Autodesk.Revit.DB..::..FamilyParameter
A family parameter of the current type.
- value
- Type: System..::..Double
The new value for family parameter.
Exceptions
Exception | Condition |
---|---|
Autodesk.Revit.Exceptions..::..ArgumentException | Thrown when the input argument-"familyParameter"-is an invalid family parameter. |
Autodesk.Revit.Exceptions..::..ArgumentOutOfRangeException | Thrown when the input argument-"familyParameter"-is out of range. |
Autodesk.Revit.Exceptions..::..InvalidOperationException | Thrown when the family parameter is determined by formula, or the current family type is invalid. |