See the top rated post in this thread. Click here

Results 1 to 7 of 7

Thread: What is the difference between Unload vs Detach an Xref

  1. #1
    100 Club
    Join Date
    2004-08
    Posts
    137
    Login to Give a bone
    0

    Question What is the difference between Unload vs Detach an Xref

    What is the difference between unloading an xref and detaching one?

  2. #2
    100 Club david-k's Avatar
    Join Date
    2015-12
    Location
    San Diego, CA
    Posts
    100
    Login to Give a bone
    0

    Default Re: What is the difference between Unload vs Detach an Xref

    Detaching removes it from the dawing.
    Unloading prevents you from seeing it or plotting it akthough it is still in the drawing. Think of it as freezing the x-ref.

  3. #3
    100 Club bmonk's Avatar
    Join Date
    2005-11
    Location
    ...1st & 1st...Im at the nexis of the universe...
    Posts
    159
    Login to Give a bone
    0

    Default Re: What is the difference between Unload vs Detach an Xref

    what david-k said.

    Also, unloading still retains the path of the xref, while detaching it (like said above) removes it all together. Unloading it makes it much easier and faster to just Reload it later, when u need to look at it again. If you detached it, you would have to re-map it all over again, this can take up some time, especially if you files are not in perfect order, and you have to look forever to find them

    just my 2c

  4. #4
    100 Club
    Join Date
    2004-08
    Posts
    137
    Login to Give a bone
    0

    Smile Re: What is the difference between Unload vs Detach an Xref

    This is all good. Thanks

  5. #5
    I could stop if I wanted to
    Join Date
    2006-01
    Posts
    202
    Login to Give a bone
    1

    Default Re: What is the difference between Unload vs Detach an Xref

    We have a simple lsp routine which allows us to type "xun" to click on an xref and it becomes unloaded. "xre" will reload the last xref which was unloaded.
    This is great if you have a drawing with multiple xrefs and you are not 100% sure of the name of the one you want to unload from the list in the xref manager as it allows you to simply click on an xref to turn it off.

    The combination of a quick xun follwed by xre when ever you want to bring it back also is great for lazy people like myself who hate brining up the xref manager every time we need to turn one on or off!

    Code:
    ; UNLOAD XREF
    
    (defun c:xun ()
    
    (setvar "cmdecho" 0)
    
    (setq xb nil)
    
    (setq xb (entsel))
    
    (if (/= xb nil)
    (progn
    
    (setq xc (car xb))
    (setq xd (entget xc))
    (setq xe (assoc 2 xd))
    (setq xf (cdr xe))
    
    (command ".xref" "U" xf)
    
    ) ;progn
    ) ;if
    
    (if (= xb nil)
    (princ "\n No XREF selected!!")
    )
    
    (setvar "cmdecho" 1)
    (princ)
    
    )
    
    
    ; RELOAD LAST UNLOADED XREF
    
    (defun c:xre ()
    
    (setvar "cmdecho" 0)
    
    (if (/= xf nil)
    
    (command ".xref" "r" xf)
    
    )
    
    (if (= xf nil)
    (princ "\n No XREF to reload!!")
    )
    
    (setvar "cmdecho" 1)
    
    (princ)
    
    )

  6. #6
    100 Club The VLG's Avatar
    Join Date
    2005-04
    Location
    on the up....
    Posts
    137
    Login to Give a bone
    0

    Default Re: What is the difference between Unload vs Detach an Xref

    Quote Originally Posted by sherflor
    What is the difference between unloading an xref and detaching one?
    If you are new to the use of x-refs then you might need to have a quick look at the difference between ATTACH & OVERLAY.

    If you're not familiar with using them then attach can get you into a right old mess fairly sharpish.
    If in doubt overlay.

  7. #7
    I could stop if I wanted to H.Hunter's Avatar
    Join Date
    2005-08
    Location
    Somewhere, but not here
    Posts
    241
    Login to Give a bone
    0

    Default Re: What is the difference between Unload vs Detach an Xref

    Quote Originally Posted by sherflor
    What is the difference between unloading an xref and detaching one?
    I have an ATP course coming in September on Xrefs. You should register when it opens up.

Similar Threads

  1. Unload and Detach Xrefs shorcut
    By ysanchez in forum ACA Wish List
    Replies: 2
    Last Post: 2008-03-10, 04:35 PM
  2. Unable to detach xref
    By michael.12445 in forum AutoCAD General
    Replies: 9
    Last Post: 2008-02-28, 01:19 PM
  3. Unload XREF by Pick
    By autocad.wishlist1734 in forum AutoCAD Wish List
    Replies: 0
    Last Post: 2007-09-28, 02:26 PM
  4. Cannot detach a xref
    By kleenhippie in forum AutoCAD General
    Replies: 2
    Last Post: 2005-08-24, 04:03 PM
  5. Unload Xref by selection
    By peter.woodcock in forum AutoCAD General
    Replies: 1
    Last Post: 2005-02-07, 03:26 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
  •