AddOverride Method (ElementId, ElementId)


Adds an override for the given parameter as its value will be displayed for the Rebar Container element.

Namespace: Autodesk.Revit.DB.Structure
Assembly: RevitAPI (in RevitAPI.dll) Version: 24.0.0.0 (24.0.0.0)
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.DBElementId
The id of the parameter
value
Type: Autodesk.Revit.DBElementId
The override value of the parameter.

Exceptions

ExceptionCondition
Autodesk.Revit.ExceptionsArgumentException 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.ExceptionsArgumentNullException A non-optional argument was null

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 →