Adds an override for the given parameter as its value will be displayed for the Rebar Container element.
Namespace: Autodesk.Revit.DB.StructureAssembly: RevitAPI (in RevitAPI.dll) Version: 21.0.0.0 (21.1.1.109)
Since: 2016
Syntax
| C# |
|---|
public void AddOverride( ElementId paramId, ElementId value ) |
| Visual Basic |
|---|
Public Sub AddOverride ( _ paramId As ElementId, _ value As ElementId _ ) |
| Visual C++ |
|---|
public: void AddOverride( ElementId^ paramId, ElementId^ value ) |
Parameters
- paramId
- Type: Autodesk.Revit.DB..::..ElementId
The id of the parameter
- value
- Type: Autodesk.Revit.DB..::..ElementId
The override value of the parameter.
Exceptions
| Exception | Condition |
|---|---|
| Autodesk.Revit.Exceptions..::..ArgumentException | paramId is not the id of a parameter in the current document, or its value type is not ElementId. -or- paramId is not a Rebar Container parameter |
| Autodesk.Revit.Exceptions..::..ArgumentNullException | A non-optional argument was NULL |
| Autodesk.Revit.Exceptions..::..DisabledDisciplineException | None of the following disciplines is enabled: Structural. |