XRL Xref Reload
eplisp, the free multilingual LISP library
| Openly licensed; the original file is hosted here together with its license. | |
… Rate this tool: | |
| Commands | XRLXRLCONFIGXRL_VER |
|---|---|
| Category | Other Tools |
| Author | Adrian Ayala |
| Source | drzkid96/xrl-xref-reload |
| License | MIT |
| Version | 2.7 |
| Requirements | AutoCAD (full version, not LT). Uses the -XREF command and the ActiveX Documents collection to reach open drawings. |
| Prompt language | English |
| Files | XREF-RELOAD.lsp (14 KB) |
| Added | 2026-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
- Load XREF-RELOAD.lsp with APPLOAD.
- 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.
- Choose Yes to run it right after configuring.
- 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.
- XREF-RELOAD.lsp (14 KB)
- License text
References
- Source repository: drzkid96/xrl-xref-reload – https://github.com/drzkid96/xrl-xref-reload/tree/1f474fd27f08c258e17bd156ed07265b4b8a7cf7
- Author: Adrian Ayala – https://github.com/drzkid96
- 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