PathName Property


The fully qualified path of the document's disk file.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 2015.0.0.0 (2015.0.0.0)

Syntax

C#
public string PathName { get; }
Visual Basic
Public ReadOnly Property PathName As String
	Get
Visual C++
public:
property String^ PathName {
	String^ get ();
}

Remarks

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 .

Examples

Copy C#
string docPathName = document.PathName;
Copy VB.NET
Dim docPathName As String = document.PathName

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 →