Looking for a lisp routine to help go through my drawings and change the xref drawing paths to dot dot. ex: ..\xref\border.dwg AutoCad 2000
I believe a .. takes you back to the next higher directory. You probably want to do . to link to the current working directory or the directory of the drawing(s).
Well, the .. system works fine when I go and change it in the xref manager but was looking for a lisp or vba routine that would allow me to change multiple drawings without having to open them manually.
I posted a file name "xrp_v3_2_for_2004.zip" in the Customer-Files newsgroup. Look for a message entitled "XREF Relative Pathing Lisp". I wrote this quite a while ago (for R14), works on XREFs and IMAGES while in a drawing (not externally), figuring out the "dot dot backslash" relative path. I kept waiting for it the utility to become obsolete. Beginning with ACAD 2004, finally one can apply a relative path when first attaching an XREF, but there's still no way to convert a full-pathed XREF after the fact, unless you use a utility such as this. In R2000i, if you used Buzzsaw (I think it was version 3), there was a Project Point "Mini Client"... basically a plugin and menu with tools to interface with Buzzsaw... I really liked it. Surprisingly, it had a tool to apply relative paths... the first such tool that I saw from Autodesk. Unfortunately, the utility applied erroneous paths when XREFs lived "above" the current DWG position in a folder tree, so we removed it from the menu and in its place, put in my XRP utility. With Buzzsaw 4, they eliminated the "Mini Client", which I still pine for (for its general functionality, not for the XREF pathing utility that didn't work). The whole "relative pathing" thing was an interesting programming challenge.