eplisp

XRL Xref Reload

eplisp, the free multilingual LISP library

XRL Xref Reload
Openly licensed; the original file is hosted here together with its license.
…
Rate this tool:
CommandsXRLXRLCONFIGXRL_VER
CategoryOther Tools
AuthorAdrian Ayala
Sourcedrzkid96/xrl-xref-reload
LicenseMIT
Version2.7
RequirementsAutoCAD (full version, not LT). Uses the -XREF command and the ActiveX Documents collection to reach open drawings.
Prompt languageEnglish
FilesXREF-RELOAD.lsp (14 KB)
Added2026-10-26
Download the original fileSource repository

Reloads external references from the command line in three modes: all of them, ones picked from a numbered list, or a saved set stored beside the drawing.

XRL is an xref reload tool written by Adrian Ayala. In projects with many external references, it reloads just the references you care about with one command instead of opening the External References palette and selecting them each time.

Overview

There are three modes: Quick reloads every xref; sElect shows the xrefs as a numbered list and accepts ranges such as 1,3,5-8 or * for all; saVed reloads a set built earlier. The saved set is written to a text file named <drawing name>.xrl in the drawing's folder and is read back automatically when the in-memory set is empty.

With SaveAll on (the default), drawings open in the same AutoCAD session that have unsaved changes and share a name with an xref being reloaded are saved first, so the reload shows the latest edits. Mode, saved set and SaveAll are set with XRLCONFIG.

How to use it

  1. Load XREF-RELOAD.lsp with APPLOAD.
  2. Type XRLCONFIG; use Mode to pick the mode, Set to add or remove xrefs in the saved set, and saveAll to turn SaveAll on or off.
  3. Choose Yes to run it right after configuring.
  4. Later, just type XRL to reload with the current settings.

Notes and limitations

  • Writes a <drawing name>.xrl file next to the DWG for the saved set.
  • With SaveAll on, modified open drawings whose names match an xref are saved without asking. The match uses the xref name and the drawing's file name, not the file path.
  • Each time the file is loaded, the mode resets to Saved and SaveAll to on. If XRL is run with an empty saved set, XRLCONFIG opens first.
  • Command-line output uses box-drawing characters that may not display correctly in some versions.
  • The repository is new (2026); test the routine on a copy of the drawing first.

Source and license

This tool is not made by eplisp. The file is published unchanged under its author's license; copyright stays with the author.

References

  1. Source repository: drzkid96/xrl-xref-reload – https://github.com/drzkid96/xrl-xref-reload/tree/1f474fd27f08c258e17bd156ed07265b4b8a7cf7
  2. Author: Adrian Ayala – https://github.com/drzkid96
  3. License: MIT – https://github.com/drzkid96/xrl-xref-reload/blob/1f474fd27f08c258e17bd156ed07265b4b8a7cf7/LICENSE

Found a mistake, or are you the author of this tool? Request a correction or removal