Here is what I use.
(defun c:ReloadLoadedXrefs (/ EntData)
(vlax-for i (vla-get-Blocks (vla-get-ActiveDocument (vlax-get-Acad-Object)))
(if
(and
(= (vla-get-IsXref i) :vlax-true)
(setq EntData (entget (tblobjname "block" (vla-get-Name i))))
(= (logand 32 (cdr (assoc 70 EntData))) 32)
)
(vla-Reload i)
)
)
(princ)
)
--
Tim
"A blind man lets nothing block his vision."
"A. Lawniczak"
wrote in message
news:5083551@discussion.autodesk.com...
How would i reload all xrefs that are currently loaded? Frequently we
unload xrefs for whatever reason though they are still there. I now have a
command that reloads all xrefs (like after a change has been made), but also
reloads the ones that are unloaded. I want to skip the ones that are
unloaded. Any ideas?
--
Thanks in advance
Andy
"Are You A Good Person?"
take the test -> www.GoodPersonTest.com