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: Model Space

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

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

  • GoToLayout

    Short description Opens a DCL dialog to filter layout names with wildcards and quickly switch the current tab to the selected match. Includes optional preview switching while browsing and remembers the last used filter pattern across runs. Command: Command: GoToLayout Description: Builds a unique temporary DCL file each run and launches a dialog titled Go…

  • FreezeLayersInMS

    Short description FLMS3 — Model Space layer control dialog: filter + multi-select + batch actions (Freeze/Off/Lock/Plot, etc.) with optional Xref scoping Fixes: filters never show stray “T”; Xref layer names are displayed without the xref| prefix while operations still use full names internally Persists filter/toggle/xref selections between runs via environment variables Command: • FLMS3 Description:…

  • Match AutoCAD Screens​

    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. Lisp code: Expand Code ⬇ Select Code Copy Code Comming soon … Additional info: Based on / Source code: Open Website Share this page:

  • Change Background Color

    Short description Changes AutoCAD’s model/paper background color using presets and keeps cursor/track/snap colors readable. Includes a dialog (DCL) with Apply/OK/Cancel and can restore the original colors if you cancel. Command: Command: c:BG Opens a DCL-based “Background Changer” dialog allowing you to pick a background color preset and apply it to Model and/or Paper space. Description:…