As Reference Manager can only change the path to External References, and not the name of the reference drawing itself (which I need to do), I'm looking into correcting a set of drawings using ObjectDBX.
I've been successful at adding XREFs to ODBX drawings in the past using vla-AttachExternalReference, but am not understanding why I am receiving this error when attempting to detach:
Knowing full well that I am willingly, officially zombifying this thread....
Wow I was bad about posting my solution back then... I did, and will dig through my toolbox to see if I cannot find what I used. I've learned a lot since back then, and may have changed code for other uses, etc..
Is there something specific your needing other than what I describe above?
Of course, were I coding this new, I'd probably use the .NET API... Specifically ReadDwgFile() and Autodesk.AutoCAD.Internal.Utils.WcMatch(string, string) Methods.
Specifically. Detaching an xref from a drawing that is opened with dbx.
I'm converting a lisp that originally only functioned in the current session. Now I wish to convert to batch processing with dbx.
I'm just not there in .net yet.
vla-detach works in the current session, but fails in dbx - exactly the problem you had. How did you wind up detaching while in dbx?
One suggestion was to vla-delete = failed
The post suggested by SOliver also did not solve. Couldn't really tell if Joro was getting results and Lee was trying to troubleshoot..??, or if Lee hadn't tested the concept first?? Either way, it was a similar issue. Lee's code generated the Automation error without vla-catch-all-apply.
I would have started a new post, but I didn't see that age of this post in my browser. Thanks for looking back into this.