I regularly receive files from a surveyor that have well over 150 broken Excel data links. That number grows with each file they send me. Selecting objects in these files causes AutoCAD to hang for several seconds before registering the selection, unless I remove all of the data links. I CAN go in to the Data Link Manager and manually delete each data link, so there doesn't seem to be any objects using them. One I do that I don't have any selection issues. The problem is that that process takes a looooong time. I've asked my client to reach out to the surveyor to see if they can clean up their files, but so far no response from them.
From googling the problem I've tried:
Unfortunately, just using a different surveyor is out of the question: my client's client uses them exclusively (I'm 4th party here). Is there any way possible to get rid of all of these in one operation? I currently have 14 surveys that each have 150+ missing data links.
Solved! Go to Solution.
Solved by ВeekeeCZ. Go to Solution.
If you post some sample dwg to test on, possibly the routine you mentioned above, I could look at what could be done.
Do you want to remove all of them (possibly simpler) or just those missing ones?
One of the survey files is attached along with the LISP. The LISP routine came from this thread from a few years ago on the same issue: https://forums.autodesk.com/t5/autocad-forum/delete-multiple-datalinks-from-a-drawing/td-p/7368398
They are all missing, so I'd like to remove them all if possible.
This simple lisp does work?
(defun c:DataLinkDelete nil (dictremove (namedobjdict) "ACAD_DATALINK") (princ))
Our JTB FixRefs app can be used for this purpose.
YES!!! That worked perfectly! Thank you! You have no idea how much time you just saved me.
Can't find what you're looking for? Ask the community or share your knowledge.