n8wex
2009-10-01, 02:34 PM
Is it possible to get the Xref's FullPath if unloaded?
n8wex
2009-10-01, 02:47 PM
worked it out...
Public Shared Function FullPath(ByVal Name As String) As String
Dim strReturn As String = ""
Using xr As XrefGraphNode = GetXRef(Name)
Using db As Database = Application.DocumentManager.MdiActiveDocument.Database
Using tr As Transaction = db.TransactionManager.StartTransaction
Dim btr As BlockTableRecord = CType(tr.GetObject(xr.BlockTableRecordId, OpenMode.ForRead), BlockTableRecord)
strReturn = btr.PathName.ToString
End Using
End Using
End Using
Return strReturn
End Function
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.