Message 1 of 5
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm looking for a LISP routine to:
1) Reload all xrefs
2) Detach all unloaded XREFS
3) Detach all "not found" XREFS
What I've found so far is great for detaching unloaded XREFS, but doesn't take care of the other 2 things.
;DETACHES UNLOADED XREFS
(defun remove-unloaded-xrefs ()
(vlax-for block (vla-get-blocks
(vla-get-activedocument
(vlax-get-acad-object)))
(if (and (= :vlax-true (vla-get-isxref block))
(= 0 (vla-get-count block))
)
(vla-detach block)
)
)
)
(defun c:dux ()
(remove-unloaded-xrefs)
(princ)
)
Solved! Go to Solution.