PathName Property (IExternalReference)

PathName Property (IExternalReference) | Send Feedback
See Also

Gets or sets the path of the external reference.

# Syntax

Visual Basic |
--- | ---
    Property PathName As System.String

C# |
--- | ---
    System.string PathName {get; set;}

JavaScript |
--- | ---
    get_PathName () : String
    put_PathName (
       NewVal : String
    )

COM native C++ |
--- | ---
    HRESULT get_PathName(
       BSTR* Val
    )
    HRESULT put_PathName(
       BSTR NewVal

C++ |
--- | ---
    DSRESULT get_PathName (
       dsString* Val
    )
    DSRESULT put_PathName(
       const dsString& NewVal
    )

#### Property Value

Path of the external reference

# Example

This code snippet shows how to get the external references and their names and paths.

#### COM native C++

> _variant_t pVariantArray = dsDoc->GetExternalReferences();
> if( V_VT( &pVariantArray ) != VT_EMPTY )
> {
> IExternalReferencePtr *ExtRef = NULL;
> int countOfExtRef = 0;
> TypeConverter::convertVariantArrayToPtrArray<IExternalReferencePtr, IExternalReference>( pVariantArray, ExtRef, countOfExtRef );

> bstr_t xRefPath = ExtRef[i]->GetPathName();
> }
> delete[] ExtRef;

# See Also

####

IExternalReference Interface
IExternalReference Members
IExternalReference::Name Property

# Availability

DraftSight V1R1