Gets or sets the path of the external reference.
.NET Syntax
| Visual Basic (Declaration) | |
|---|
Property PathName As System.String |
| C# | |
|---|
System.string PathName {get; set;} |
| JavaScript | |
|---|
get_PathName () : String
put_PathName (
NewVal : String
)
|
| 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
Availability
DraftSight V1R1