Announcements
We are currently migrating data within this board to improve the community. During this process, posting, replying, editing and other features are temporarily disabled. We sincerely apologize for any inconvenience caused and appreciate your understanding. Thank you for your patience and support.

Xreference Not Found: How to find the Saved Path?

Xreference Not Found: How to find the Saved Path?

dennis
Advisor Advisor
657 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.

Reply
Reply
0 Likes
Accepted solutions (1)
658 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

Reply
Reply
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.

Reply
Reply
0 Likes