The fully qualified path of the document's disk file.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.1.0.0 (26.1.0.34)
Syntax
C#
public string PathName { get; }
Property Value
StringRemarks
This string is empty if the project has not been saved or does not have a disk file associated with it yet. Note that the pathname will be empty if a document is detached. See IsDetached.Example
C#
string docPathName = document.PathName;
VB
Dim docPathName As String = document.PathName