GetParameter(ElementId, ElementId) Method


Parameter Access Get Parameter(Element Id, Element Id) Method

Retrieves the parameter value for the parameter on the given element.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 27.0.4.0 (27.0.4.0)
Syntax
public EvaluatedParameter GetParameter(
	ElementId elementId,
	ElementId parameterId
)

Parameters

elementId ElementId
ElementId of the element whose parameter value is requested.
parameterId ElementId
The id of the parameter to obtain.

Return Value

EvaluatedParameter
The evaluated parameter value or a default object if no value exists.
Exceptions
Exception Condition
ArgumentNullException A non-optional argument was null
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 →