UnReloadDetachSelectedXrefs_01

Short description

UnReloadDetachSelectedXrefs Xref management dialog for filtering, selecting, zooming, saving lists, loading lists, and batch operations on xrefs in the current drawing.
unreloaddetachselectedxrefs 000

Command:

Command UnReloadDetachSelectedXrefs

Description:

Description This lisp scans the current drawing for xref definitions and displays them in a multi-column dialog (Name, Type, Units, Layer) with synchronized selection across columns. It allows users to apply batch xref operations, change xref attachment type, and save or load xref lists for repeatable setups across drawings. Predefined folder behavior The Save List and Load List file dialogs can start in a predefined folder chosen from a scrolling list. The predefined folder root is the user OneDrive location and the selected entry appends a relative path such as \Work\Project_01\_extra\Xref_Load_List. The predefined folder options are: None, Project_01, Project_02, Project_03, Project_04, Project_05.

Helper function: (if any)​

Helper logic and protections
  • Discovery reads xrefs from the drawing Blocks table and builds the list with Name, Type (Attached or Overlay), Units, Found At, and Layer.
  • Filtering supports wildcard patterns for name and layer, plus Type and Units dropdown filters.
  • Selection map stores selection state by xref name and keeps it consistent while filters change.
  • UCS and view preservation wraps actions to restore UCS and view after each operation.
  • Layer robustness sanitizes illegal layer characters, creates missing layers, and can move all xref inserts to the stored layer.
  • Zoom2Xref computes the Model Space bounding box of selected xref inserts and zooms to it without closing the dialog.
  • Predefined folder resolution uses the selected list entry to set the default start directory for Save List and Load List dialogs.

Functionalities:

Functionalities
  • Filter xrefs by Name wildcard, Type, Units, and Layer wildcard, then work only on the visible subset.
  • Select All and Select None for the currently filtered list, with a live selected counter.
  • Zoom2Xref zooms to the Model Space extents of the first selected xref insert set.
  • Operations on selected using the Operation radio group and Apply to Selected: Unload, Reload, Detach.
  • Operations on all using dedicated buttons: Unload ALL, Reload ALL, Detach ALL.
  • Attachment type conversion using the Attachment radio group and Apply to Selected: Attach or Overlay.
  • Attachment conversion on all using dedicated buttons: Attach ALL, Overlay ALL.
  • Save List writes a text file containing only the selected xrefs with their key properties (Name, Type, Found At, UnitsCode, Layer) plus host metadata (INSUNITS and UCSNAME).
  • Load List reads a saved list, attaches missing xrefs from Found At paths, enforces stored units during attach, reloads them, and restores host settings after completion.
  • Predefined folders allow Save List and Load List dialogs to open directly in the selected project folder: None, Project_01, Project_02, Project_03, Project_04, Project_05.

Result:

Result Running UnReloadDetachSelectedXrefs opens a dialog where the user can safely batch-manage xrefs without manually selecting drawing entities. The user can unload, reload, or detach xrefs, convert attach type between Attached and Overlay, zoom to xref inserts, and save or load repeatable xref lists. Saved lists are plain text and can be reused to recreate or standardize xref setups, including layer assignment and units control during attach operations. Tags Lisp, Xrefs, Dialog_UI, DCL, Layers, UCS, WCS, Coordinate_Systems, Model Space Suggest relevant tags not in the above list File_IO, Batch_Processing, Path_Management

Images, animations etc.

unreloaddetachselectedxrefs 000
Pixel

Additional info:

Share this page:

Page Tag: DCL

  • UnReloadDetachSelectedXrefs_01

    Short description UnReloadDetachSelectedXrefs Xref management dialog for filtering, selecting, zooming, saving lists, loading lists, and batch operations on xrefs in the current drawing. Command: Command UnReloadDetachSelectedXrefs Description: Description This lisp scans the current drawing for xref definitions and displays them in a multi-column dialog (Name, Type, Units, Layer) with synchronized selection across columns. It allows…

  • SetPublishLocation_01

    Short description Summary This LISP provides a dialog to review and batch-edit plotting and layout settings across multiple layouts, plus viewport utilities for lock, annotation visibility, and zoom tools. Designed for fast QA and standardization of Plot Device, Page Setup, and Paper Size per layout. Command: Command Run: SetPlotDeviceNames Opens the DCL dialog for layout…

  • DuplicateLayouts_01

    Short description DuplicateLayouts provides a DCL Dialog_UI to queue layout tabs with copy counts, then batch duplicate them using -LAYOUT Copy with safe fallbacks and unique naming. Command: Commands DuplicateLayouts opens the dialog and runs the full tool workflow. Description: What the user does Run DuplicateLayouts to open the DCL dialog. Select a layout in…

  • Zoom Extend Window

    Short description What this LISP does ZEZW opens a DCL dialog to multi-select layouts and then applies Zoom Extents or Zoom Window in Paper Space on the selected layouts. Key concept The zoom action runs after the dialog closes for stability and predictable execution. Command: Commands ZEZW Main command that launches the selection dialog and…

  • UnReloadDetachSelectedXrefs_00

    Short description Sort / Purpose: Interactive Xref management tool for AutoCAD that saves, reloads, and bulk-edits Xref state via a dialog, while preserving the current UCS and view for bulk actions. • Type of tool: Dialog-driven Xref control command with filters, selection, zoom-to-xref, save/load list, and batch operations. • Scope: Works on all Xrefs in…

  • SelectLayout

    Short description Select Layout from Dialog Displays a dialog box listing all paper space layouts for quick selection and activation. Command: Command: SelectLayout Description: This command creates an interactive dialog box to switch between layouts: Retrieves all paper space layouts from the current drawing (excludes Model space) Generates a temporary DCL dialog file with a…

  • LayoutNum

    Short description Provides a DCL dialog to batch rename layouts using sequential numbering with optional prefix, suffix, and zero-padding, with filtering and preview. Supports in-dialog Apply and multi-level Undo without calling AutoCAD UNDO from DCL callbacks, to avoid stability issues. Command: Commands: LAYOUTNUM, _LAYOUTNUM, LayoutNum Description: Builds a unique DCL dialog definition at runtime and…

  • LockAllVp

    Short description Tags: Layouts, Paper Space, Viewports, DCL, Dialog_UI, Lisp, CAD, Clipboard Suggested tags not in list: ObjectARX, COM_Automation, Stability, Undo_Stack Command: • LOCKALLVP Open the dialog to lock or unlock viewports in selected layouts. • LockAllVp Alias command to run the same dialog workflow. • _LOCKALLVP Underscore alias for macro use. Description: This tool…

  • Zoom Extend

    Short description LZE summary LZE opens a DCL selection dialog for Layouts, then runs Zoom Extents in Paper Space on the selected layouts after the dialog closes. Key stability rule The zoom action is executed after the dialog closes to avoid UI timing issues. Command: Command LZE Runs Zoom Extents on selected layouts in Paper…

  • Zoom Window

    Short description LZW summary LZW opens a DCL selection dialog for Layouts, then prompts for a window and runs Zoom Window in Paper Space on the selected layouts after the dialog closes. Key stability rule The zoom action is executed after the dialog closes to avoid UI timing issues. Command: Command LZW Runs Zoom Window…