Xreference Not Found: How to find the Saved Path?

Xreference Not Found: How to find the Saved Path?

dennis
Advisor Advisor
693 Views
2 Replies
Message 1 of 3

Xreference Not Found: How to find the Saved Path?

dennis
Advisor
Advisor

I am writing some code to check a drawing's Xrefs.  Should an Xref show as Not Found, I want grab the Saved Path (which shows in the XRef Manager), then feed that Saved Path elsewhere in my code to grab the Xref by name and place it where it should be.  The main question here is just to find the Saved Path.  I am able to see some data via XrefGraphNode and then the BlockTableRecord.  However, when the Xref is Not Found, the Database of the XrefGraphNode is null, so can't get any data.  But since the XRef Manager shows the Saved Path, it must be stored somewhere.

0 Likes
Accepted solutions (1)
694 Views
2 Replies
Replies (2)
Message 2 of 3

Virupaksha_aithal
Autodesk Support
Autodesk Support
Accepted solution

Hi,

 

Try reading block table record “PathName” variable. “XrefGraphNode” has the block table record id (“BlockTableRecordId”).



Virupaksha Aithal KM
Developer Technical Services
Autodesk Developer Network

0 Likes
Message 3 of 3

dennis
Advisor
Advisor

That seems to concur with what I was finding.  I was looking specifically for a property named SavedFilePath but I believe the blocktablerecord pathname as you have pointed out is actually the property I am after.  Thanks for the confirmation.

0 Likes