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: Layouts

  • 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…

  • LayoutTools

    Short description LayoutTools manages layout tabs to batch Lock or Unlock viewports, toggle AnnON or AnnOFF, and apply Zoom Extents or Zoom Window in Paper Space across selected or displayed layouts, with status tracking stored in the DWG. Command: Commands and aliases LayoutTools opens the main dialog. LayoutTools is an alias that runs the same…

  • 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…

  • AnnoAllOnOff

    Short description Single dialog that sets ANNOALLVISIBLE to 1 or 0 for a chosen set of Model/Layout tabs. Combines the functionality of AAON and AAOFF with mode radio buttons and tab multi-select in one UI. Command: Command: AAVIS Description: Generates an embedded DCL dialog at runtime that provides a Mode selector and a multi-select list…

  • 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…

  • AnnoAllOff

    Short description Opens a DCL picker to choose Model/Layout tabs, then sets ANNOALLVISIBLE to 0 on the selected tabs. Provides quick selection controls for All or None before applying the change. Command: Command: AAOFF Description: Builds a temporary DCL dialog at runtime that lists all tabs (including Model) and allows multi-selection. After the user confirms…

  • 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…

  • Rame

    Short description Comming soon … Command: Comming soon … Description: Comming soon … Helper function: (if any)​ Comming soon … Functionalities: Comming soon … Result: Comming soon … Images, animations etc. Additional info: Based on / Source code: Open Website Share this page: