GetAbsolutePath Method


External File Reference Get Absolute Path Method

Returns an absolute path to the referenced file, regardless of whether the PathType.Enum is relative or absolute.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public ModelPath GetAbsolutePath()

Return Value

ModelPath
A full path to the linked model.
Remarks
ExternalFileReferences which are taken from a closed document will report their absolute path as of the last time the document was saved.
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 →