Results 1 to 7 of 7

Thread: Change Xref from Full Path to Relative Path

  1. #1
    Certifiable AUGI Addict ccowgill's Avatar
    Join Date
    2004-08
    Location
    Iron Station, NC
    Posts
    3,197
    Login to Give a bone
    0

    Default Change Xref from Full Path to Relative Path

    I have looked and looked, and read most of everything out there on how to change an xref from a full path to a relative path, and I can't seem to get anything to work. I have tried using reference manager, it says it can be done in the help, but doesn't tell how. Based on some of the threads I read, you replace paths with . but that doesn't seem to work either. When Eagle Point attaches an xref, it makes it the full path, I'd like to change it to relative via lisp, so I can set it up to run automatically, without user intervention. The only thing I can find that seems to be guaranteed to work is detach the xref, and reattach it, specifiing relative path.

  2. #2
    100 Club
    Join Date
    2006-12
    Posts
    145
    Login to Give a bone
    0

    Default Re: Change Xref from Full Path to Relative Path

    Quote Originally Posted by ccowgill View Post
    I have looked and looked, and read most of everything out there on how to change an xref from a full path to a relative path, and I can't seem to get anything to work.
    Just couple hours earlier while searching about LISP that would load my other routines I blundered into Mark McDonough's site where is exactly what you are looking for called Xrp2004.lsp.

    Cheers!

  3. #3
    Certifiable AUGI Addict
    Join Date
    2015-11
    Location
    Jo'burg SA
    Posts
    4,512
    Login to Give a bone
    0

    Default Re: Change Xref from Full Path to Relative Path

    Quote Originally Posted by Yancka View Post
    Just couple hours earlier while searching about LISP that would load my other routines I blundered into Mark McDonough's site where is exactly what you are looking for called Xrp2004.lsp.

    Cheers!
    It can also be found here: http://forums.augi.com/showthread.ph...=relative+path

    As well as my version. Including an "automatic" relative path method, which makes all xrefs relative pathed in a drawing, no matter how the user loaded them.

  4. #4
    Active Member
    Join Date
    2007-03
    Posts
    57
    Login to Give a bone
    0

    Default Re: Change Xref from Full Path to Relative Path


  5. #5
    Member
    Join Date
    2009-04
    Posts
    42
    Login to Give a bone
    0

    Default Re: Change Xref from Full Path to Relative Path

    in order to change from full path to relative path just add a period (.) befor the folder name that your xref files lives in.

    ex.
    - say your xref lives in an arch folder
    -c:\2009\arch\file name

    change path in xref dialog box (found at) to
    - .\arch\file name

    this should do the fix

  6. #6
    Certifiable AUGI Addict
    Join Date
    2015-11
    Location
    Jo'burg SA
    Posts
    4,512
    Login to Give a bone
    0

    Default Re: Change Xref from Full Path to Relative Path

    Quote Originally Posted by johnthao714 View Post
    in order to change from full path to relative path just add a period (.) befor the folder name that your xref files lives in.

    ex.
    - say your xref lives in an arch folder
    -c:\2009\arch\file name

    change path in xref dialog box (found at) to
    - .\arch\file name

    this should do the fix
    In your example, it'll only work if the current drawing (the one containing the xref) is saved in c:\2009. Say the current DWG is saved in c:\TEMP, then the relative path would be ..\2009\arch\file name. Notice the double period, indicating "previous" folder.

    It gets even more complex: say the current DWG is in c:\TEMP\DWGS\ now the relative path would become: ..\..\2009\arch\file name.

    So it's not a "one size fits all" solution. The relative path needs to be calculated for every instance. Either through the XRef Attach dialog or through some custom code.

  7. #7
    Certifiable AUGI Addict ccowgill's Avatar
    Join Date
    2004-08
    Location
    Iron Station, NC
    Posts
    3,197
    Login to Give a bone
    0

    Default Re: Change Xref from Full Path to Relative Path

    Quote Originally Posted by irneb View Post
    It can also be found here: http://forums.augi.com/showthread.ph...=relative+path

    As well as my version. Including an "automatic" relative path method, which makes all xrefs relative pathed in a drawing, no matter how the user loaded them.
    I'll give that version a shot, all the ones I've tried previously displayed that the xref path did not need to be changed, and left it as the full path.

Similar Threads

  1. 2013: full path to relative
    By troye659872 in forum AutoCAD General
    Replies: 4
    Last Post: 2014-05-15, 11:34 PM
  2. 2009: Xref relative path
    By LanceMcHatton in forum AutoCAD General
    Replies: 7
    Last Post: 2011-07-26, 03:58 PM
  3. Changing full to relative path in 2008
    By dalewww in forum AutoCAD General
    Replies: 4
    Last Post: 2008-12-02, 01:02 PM
  4. Relative Xref Path default
    By jmagarolas962356 in forum AutoCAD General
    Replies: 1
    Last Post: 2008-10-01, 12:19 PM
  5. Relevative Path vs Full Path Xref Swap *
    By tomdillenbeck in forum AutoCAD Wish List
    Replies: 3
    Last Post: 2005-05-26, 06:19 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •