phillion Posted April 16, 2009 Posted April 16, 2009 Good day all. I have a large number of TIFF files referenced to a smaller number of different AutoCAD drawings. The path of the TIFF files have been changed (I dont have the option of putting the TIFF file in the same location as the AutoCAD file) and I am editing the new path in the Reference Manager. Which is working well. Next I am reloading the images using the XREF command, highlighting all the files, right click and reload. The problem is that when I go to highlight the files it wants to generate a preview image off all the TIFF files and this takes and annoyingly long time. My question is, is there a way to bypass the preview step? or is there a different way to reload all the XREFs in a particular drawing? Using AutoCAD 2009. Quote
ronjonp Posted April 16, 2009 Posted April 16, 2009 Give this a try to reload them all fast: (defun c:rax (/ blks) (vl-load-com) (setq blks (vla-get-blocks (vla-get-activedocument (vlax-get-acad-object)))) (vlax-for blk blks (if (equal (vla-get-isxref blk) :vlax-true) (progn (vla-reload blk) (princ (strcat "\nReloading " (vla-get-name blk) "...")) ) ) ) (princ) ) Quote
haynesc Posted May 13, 2010 Posted May 13, 2010 hi ... is there a way to place this code into a file that you can use as a drag and drop feature or as an icon in the ui ? chris Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.