Quickly Redirect XREF Paths

kick it on CadKicks.com

It’s happened to all of us. You receive a zipped up set of CAD files from someone, you open a layout drawing that contains , and all the XREF paths are broken. Well never fear, there is a lazy way to redirect all the XREF paths in a drawing. Here is how I make it happen.

The command is called “Redefine Path” (command: REDIR). It’s actually an Express Tools command that redirects any XREF path to a new location. When you type REDIR on the command line you will get this:

Enter old directory (use '*' for all), or ? <options>:

If you hit enter immediately, the options dialog box will appear.

NOTE: To access this box any other time, simply type REDIRMODE on the command line.

I usually leave all items checked in the REDIRMODE dialog box.

Back at the prompt…

Enter old directory (use '*' for all), or ? <options>:

Instead of typing an XREF path, simply type an asterisk (*) to specify all XREF paths. It will then prompt you with:

Replace "*" with:

Minimize AutoCAD and in Windows Explorer browse to the folder where the are stored. Highlight the path to the folder, right-click, and select Copy.

Back in AutoCAD, right-click on the command line, select Paste, and hit enter.

All XREF paths will now be redirected to the new location only if they are found in that folder. This is the beautiful thing about the REDIR command. If your or Images are stored in more than one folder, you can run REDIR more than once and it will redirect only the or Images that need to be redirected. If an XREF doesn’t exist in one of those folders, the path won’t be modified.

Have a good weekend!

Share and Enjoy:
  • Twitter
  • Facebook
  • LinkedIn
  • del.icio.us
  • Google Bookmarks
  • Live

4 Comments so far

  1. Sign up at Gravatar.com to add your picture. mramir on September 5th, 2008

    by far an excellent tip.. much easier than using reference manager!

  2. Sign up at Gravatar.com to add your picture. CadKicks.com on September 5th, 2008

    Quickly Redirect XREF Paths…

    You’ve been kicked (a good thing) – Trackback from CadKicks.com…

  3. Sign up at Gravatar.com to add your picture. Josh Jones on September 5th, 2008

    Thanks. I agree! It is much easier.

  4. Sign up at Gravatar.com to add your picture. klies on March 19th, 2009

    thx…very helpful. easier than xref manager

Leave a reply