Jump to content

Reload XREF's after a path change


Recommended Posts

Posted

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.

Posted

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)
)

  • 1 year later...
Posted

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

Posted

Could the use of REDIR be of benefit ?

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...