GetPathName Method (IDocument)

GetPathName Method (IDocument) | Send Feedback
See Also Example

PathName[out]
  Path and file name of the document

Gets the path and file name of the document.

# Syntax

Visual Basic |
--- | ---
    Function GetPathName() As System.String

C# |
--- | ---
    System.string GetPathName()

JavaScript |
--- | ---
    GetPathName() : String

COM native C++ |
--- | ---
    HRESULT GetPathName(
       BSTR* PathName
    )

C++ |
--- | ---
    DSRESULT GetPathName(
       dsString* PathName
    )

#### Parameters

PathName[out] or Return Value
  Path and file name of the document

# Example

This code snippet shows how to get the path and file name of the document (from the DraftSight API COM native C++ template file DsAddinDocument.cpp).

#### COM native C++

> m_sDocName = m_DsDoc->GetPathName();

# Example

Get and Set Document Settings (C#)
Get and Set Document Settings (VB.NET)
Get and Set Document Settings (VBA)

# See Also

####

IDocument Interface
IDocument Members

# Availability

DraftSight V1R1