Over 1.105.000 registered users (EN+CZ).
AutoCAD tips, Inventor tips, Revit tips, Civil tips, Fusion tips.
Try the new precise Engineering calculator.
New AutoCAD 2026 commands and sys.variables and env.variables,.
CAD tip # 9299:
Question
A
If your External reference palette displays a status "Unreferenced" at an xref, it means that this DWG file is attached to the main drawing but it is not used (referenced) in the drawing - has no insertion point, scale, rotation. This is usually a result of an unintentional erase of the xref instance (reference), improper DWG format of the xref or of another error.
You can delete (detach) such orphaned xref - manually from the palette (right-click), or all - using PURGE or using this XDetach routine:
(defun c:XDetach (/ blk)
(while
(setq blk (tblnext "block" (not blk)))
(if (and (cdr (assoc 1 blk))
(< (cdr (assoc 70 blk)) 32))
(command "_-xref" "_d" (cdr (assoc 2 blk))))
)
)
ACAD
18.6.2013
51214×
this tip shared by ARKANCE experts applies to: AutoCAD ·
![CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz] CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz]](../common/arkance_186.png)

