Your Search Bar For Shrewd Tips

How To Close Xref In Autocad


Knowing how to close an Xref in AutoCAD depends on what you mean by “close.” An external reference, or Xref, is a drawing linked into your current file. You can unload it to hide it temporarily, detach it to remove the link, close an Xref-editing session, or close the referenced drawing if you opened it separately. Choosing the right option helps you avoid deleting a useful link or losing changes.

This guide explains each method, when to use it, and what to check if AutoCAD will not let you close or remove an Xref. The steps apply to most recent versions of AutoCAD, although button names and palette layouts can vary slightly.

Understand What “Close an Xref” Means

Unlike a drawing opened in its own window, an Xref normally does not have a separate document window to close while it is attached to a host drawing. AutoCAD reads the referenced file and displays its contents inside the host drawing. The Xref remains a linked reference, rather than becoming part of the host drawing’s regular geometry.

Before taking action, decide what outcome you want:

  • Hide it temporarily: Unload the Xref. Its objects disappear from view, but the reference stays in the drawing and can be loaded again.
  • Remove it from the drawing: Detach the Xref. This removes the reference and its associated link from the host file.
  • Finish editing the referenced drawing in place: Close the Refedit session and choose whether to save changes.
  • Close the source file itself: Switch to the source drawing if it is open as a separate document, then close that drawing.
  • Close the Xref palette: Hide the palette without changing the reference at all.

In most cases, if you simply want an Xref to stop displaying for now, unloading is the safest option. Detaching is more permanent and should be used only when you no longer need the reference.

How to Unload an Xref in AutoCAD

Unloading is the best choice when you want to temporarily remove an Xref from the screen, reduce drawing complexity, or work without displaying a linked plan. The reference remains listed in the host drawing, so you can reload it later without attaching the file again.

  1. Open the host drawing that contains the Xref.
  2. Enter XREF at the command line and press Enter to open the External References palette. Depending on your workspace, you may also be able to open it from the Insert tab or the Palettes area of the ribbon.
  3. In the palette, locate the reference you want to close. If the drawing contains nested references, expand the tree to identify the correct file.
  4. Select the Xref, right-click it, and choose Unload. In some versions, you can select the reference and use the unload button or option in the palette.
  5. Confirm that the reference’s status changes to unloaded. Its objects should no longer display in the host drawing.

Unloading does not erase the Xref’s saved file, and it does not convert the reference into regular AutoCAD objects. It only stops AutoCAD from displaying and using that reference in the current host drawing. To show it again, open the External References palette, select the unloaded item, and choose Reload.

You can also use the command-line version of the Xref tools. Enter -XREF and follow the prompts to select the unload option and specify the reference name. Command-line prompts can differ across AutoCAD releases, so the palette is usually easier if you are unsure of the exact option sequence.

How to Detach an Xref Permanently

Detach the Xref when you no longer want the host drawing to reference that file. This removes the reference from the host drawing, rather than merely hiding it. If you later need the file again, you will have to attach it again and set its path and insertion options.

  1. Open the host drawing and enter XREF to display the External References palette.
  2. Find the Xref you want to remove. Check the file name and, if necessary, expand nested references before selecting anything.
  3. Right-click the correct reference and choose Detach.
  4. Review the result in the palette and save the host drawing if you want the change to persist.

Be careful not to confuse Detach with Unload. Detach removes the reference from the host drawing; unload preserves it for later use. Also, detaching an Xref does not delete the source DWG file from your computer or network. It removes the connection to that file from the current host drawing.

If an Xref has dependent references nested beneath it, check how your drawing is organized before detaching the parent. Removing a parent reference can also remove the nested references from the host’s displayed reference structure. When in doubt, save a backup copy of the host drawing first.

How to Close an Xref Editing Session

If you used REFEDIT to edit objects inside an Xref without opening the source drawing separately, you are working in an in-place reference-editing session. To finish that session, use REFCLOSE. This closes the editing session; it does not detach the Xref.

  1. Enter REFCLOSE at the command line and press Enter.
  2. When AutoCAD asks how to handle your changes, choose the option to save changes back to the reference if you want to keep them.
  3. Choose the discard option if you do not want to keep the edits made during the session.
  4. Check the host drawing after the session ends to confirm that the reference appears as expected.

Saving changes from a Refedit session may update the referenced drawing file, so consider whether you have permission to change it and whether other users depend on the same file. If you are unsure, choose the option that discards changes, or make a separate backup before editing.

If you are editing a block rather than an Xref, the related command may be BCLOSE for closing the Block Editor. Use REFCLOSE for an in-place Xref editing session; using the wrong close command can make it harder to understand which edits are being saved.

How to Close the Xref Palette

Sometimes “close Xref” means closing the External References palette, not changing the Xref itself. To hide the palette, click its close button, usually shown as an X in the palette’s title bar. You can also use the palette’s pin or auto-hide controls to keep it available but out of the way.

Closing the palette does not unload or detach any references. The Xref continues to display in the drawing and remains linked. Reopen the palette by entering XREF at the command line whenever you need to manage references again.

How to Close an Xref Drawing Opened Separately

If you opened the referenced DWG as its own drawing in AutoCAD, close it as you would any other drawing. Switch to that drawing using the drawing tabs, then use the drawing tab’s close button or enter CLOSE at the command line. If AutoCAD asks whether to save, select the appropriate option for your work.

Closing the source drawing as a separate document does not necessarily unload or detach the Xref from the host drawing. The host can continue to display the referenced file from its saved location. To stop the host from displaying it, unload or detach it in the host drawing’s External References palette.

If the source drawing is also open in a separate AutoCAD window or session, make sure you know which drawing is active before issuing a command. Check the drawing tab or title bar to avoid closing the wrong file.

Troubleshooting Common Xref Problems

If the reference does not disappear after you try to close it, first confirm what action you chose. Unload should hide the reference while leaving it listed. Detach should remove it from the host’s reference list. Closing the palette only hides the management panel and has no effect on the drawing content.

  • The Xref is still visible: Confirm that you selected the correct reference and that it is not also attached under another name or as part of a nested reference.
  • The Xref is missing or marked unresolved: The source file may have moved, been renamed, or become unavailable on a network. Use the palette’s path options to locate the file before reloading it.
  • AutoCAD will not let you detach it: Check whether you are in a Refedit session or another command. Finish or cancel the active operation, then try again from the host drawing.
  • The reference returns after reopening the drawing: You may have unloaded it but not saved the host drawing. Save the host after changing the reference status.
  • Changes do not appear after reloading: Confirm that you edited the correct source DWG and that the host is pointing to the expected file path. Then reload the reference.
  • You cannot find the Xref palette: Enter XREF at the command line. If the palette is off-screen or docked, check the workspace and palette settings.

For important project files, save a backup before detaching references or saving edits from a Refedit session. This is especially useful when working with shared drawings, nested Xrefs, or files stored on a network.

Best Practices for Managing Xrefs

Use unload when you expect to need a reference again, such as when temporarily clearing a busy drawing. Use detach only when you are sure the host drawing no longer needs the link. Keep source files in stable folders and use consistent paths so AutoCAD can locate them across sessions and between team members.

Before closing or changing an Xref, check the reference name and path in the External References palette. In projects with several similar files, filenames alone may not be enough to identify the correct one. Save the host drawing after making changes, and communicate with collaborators before modifying shared source files.

Conclusion

To close an Xref in AutoCAD, choose the action that matches your goal: unload it to hide it temporarily, detach it to remove it from the host drawing, or use REFCLOSE to end an in-place editing session. If you only want to close the External References palette, hide the palette without changing the reference. Understanding these differences makes it easier to manage Xrefs safely and avoid removing a link you still need.


Disclaimer: Articles are written by Humans, AI or Both. Verify Important information.

Shrewdnia

Shrewdnia

Shrewdnia is a destination for curious minds seeking clarity, knowledge, and informed perspectives. Through insightful articles and practical guides our passionate team explores a wide range of topics designed to help readers understand the world around them, make smarter decisions, and stay informed in an ever-changing landscape.


💡 Every question sparks discovery, and every perspective enriches the conversation. Share your thoughts and insights in the comments 👇

Back to blog

Leave a comment

JOIN THE SHREWDNIA COMMUNITY FORUM

What do you think?

Have an opinion, experience, or question about this topic? Join the Shrewdnia Forum and share your thoughts with other readers.

Join the Forum →