Message 1 of 6
Delete unreferenced DataLinks?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
Ronjonp helped me with a little routine to delete this pesky Datalink that kept showing up in our drawings.
I'm wondering if there is a way to delete all unreferenced Datalinks in a drawing.
Here is what the routine Ronjonp helped me with....
(defun c:foo (/ a b) ;; RJP » 2020-01-17 ;; Delete MWA* datalinks (foreach e (setq a (dictsearch (namedobjdict) "ACAD_DATALINK")) (if (and (= 3 (car e)) (wcmatch (strcase (setq b (cdr e))) "MWA*")) (progn (entdel (cdadr (member e a))) (print (strcat b " deleted..."))) ) ) (princ) )
Can this be modified to delete all unreferenced Datalinks?
Thank in advance for any input received.