GetParameter(LinkElementId, Document, ElementId) Method


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

Retrieves the parameter value for the parameter belonging to the parameter document 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(
	LinkElementId elementId,
	Document parameterDoc,
	ElementId parameterId
)

Parameters

elementId LinkElementId
LinkElementId of the element whose parameter value is requested.
parameterDoc Document
The document which contains the parameter.
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 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 →