TheSwamp
Code Red => AutoLISP (Vanilla / Visual) => Topic started by: cmwade77 on April 21, 2021, 07:58:20 PM
-
We have a lot of legacy drawings that have full saved paths and we ultimately need to change them to relative paths.
I have tried various LISP routines out there that claim to change the paths and while some work to a certain extent, none quite do everything, as we also need to repath images, DGNs, PDFs, etc.
So, I am writing an all new version that should also change the paths in all attached files.
This is very much a work in progress and nowhere near complete, but for some reason I am getting an error when trying to save the drawings.
I have attached the code so far, if someone can please let me know what I am doing wrong on the saving, I would greatly appreciate it.
There is also quite a bit of cleanup and completion to still be done.
EDIT:
I have a new version now, which is updated; however, there is an error when saving nested blocks, it returns:
"Automation Error. Description was not provided."
I know I must be missing something simple and stupid, but I can't figure it out.
-
Just guessing...
(vla-saveas dbxApp i)
-
Thank you, I knew I was missing something obvious.
-
A dictionary is not a collection, therefore vlax-for cannot be used.
-
I updated the first post, I know I must be missing something simple, but on nested xrefs, I get the following error with saveas:
"Automation Error. Description was not provided."