I saw this thread when I have the problem. The solution is found out of this disscussion group:
'-----------The key is db.ResolveXrefs, otherwise the Database of the Xref will be Nothing
db.ResolveXrefs(False, False) Dim XrGph As XrefGraph = db.GetHostDwgXrefGraph(True) For i As Integer = 1 To XrGph.NumNodes - 1 Dim XrGphNode As XrefGraphNode = XrGph.GetXrefNode(i) '------- the found path of the Xref is available now dim foundpath as string =XrGphNode.Database.Filename Next
For anyone who has this problem...
Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register