[Search tip detail and code files using keywords, tip number, author name, etc ]
 
Detach All Xrefs
Tip# 3536 By Leonid Nemirovsky On 22-Nov-2010
4
Rated By 1 users
Categories : DWG
Software type : AutoCAD 2011
Rename File To : No Files to download.
Detach all referenced files.

Frequent tipster Leonid Nemirovsky sends us a command sequence to quickly detach all referenced files in AutoCAD.

"To detach all xref files, type the following at the Command prompt:
 
-XREF
D
*
 
All files will be detached, and there is no need for opening a dialog box."
 
Notes from Cadalyst Tip Patrol: Why waste time with dialog boxes? This series of keystrokes uses the Command line instead of a window. The dash (-) in front of any command will bypass any windows or dialog boxes and use the command line. –XREF lets you access the Xref Manager, but in the Command line. (In the same way, –LAYER lets you access the Layer Manager, but only in the Command line.)
 

 

Average Rating:
4


User comments
Comment by Kellogg,c. Frank
Posted on 2010-11-23 14:53:09
I simply added the following text to my acaddoc.lsp file: (defun C:xrd ( ) (command "-xref" "d" "*") You could even get rid of a letter to make it shorter. That brings my acaddoc file to 245 defined 2-3 letter commands. I rarely use toolbars (version 2004). Thanks, Leonard!
Comment by Solomon,Semyon
Posted on 2010-11-23 18:52:57
I use the following lisp command to detach all xrefs: (defun c:DXA () (COMMAND "-XREF" "D" "*")) It is the same as Frank Kellogg's lisp but with fewer keystrokes.


Log In