Function Syntax: FreezeLayersInMS AI Description FreezeLayersInMS_full_xfFilter_v12_mod_addedcols_colorNames.lsp opens a DCL dialog to manage Model Space layers using VLA operations, showing faux columns with a sticky header. Columns shown: Src, Name, On, Frz, Lck, Plt, Color, LT. Standard ACI colors (1–9) display as names (1 red, 2 yellow, 3 green, 4 cyan, 5 blue, 6 magenta, 7 white, 8 darkgray, 9 lightgray); other values remain numeric. How to Start Run command FLMS3 to open the dialog. Main UI Areas Filter: type a name pattern with optional wildcards (* and ?) then press Enter to refresh. Scope toggles: Current_Layers Current_and_Xref_Layers Xref_Layers. Xrefs list (lbXrefs): multi-select Xref names to limit which Xref layers appear when scope includes Xrefs. Matching layers (lbLayers): multi-select target layers displayed as columns with a sticky header (txtHdr). Functionality • Freeze layers: Freeze. • Unfreeze layers: Unfreeze. • Switch visibility: Off On. • Lock state: Lock Unlock. • Plot state: Plot NoPlot. • Filtering: case-insensitive, supports wildcards (* and ?), applies to full layer names including Xref prefixes. • Xref scoping: choose Current_Layers, Current_and_Xref_Layers, or Xref_Layers; when an Xref mode is active the Xrefs list is enabled. • Multi-select in both lists to act on many layers at once. • Columns use a fixed-width font and padded text for easy scanning. Safety and Behavior Src column: shows C for current drawing layers and X for Xref layers. • Color display: standard ACI colors show descriptive names; non-standard/other values remain numeric. Sticky Header and Row Format Header text is pinned above the list and rows are formatted as: Src Name On Frz Lck Plt Color LT with padded widths for alignment. Persistence Remembers filter text, scope toggles, and selected Xrefs between sessions. • First run default: Current_Layers is checked. Notes Designed for Model Space management using VLA, ASCII-safe formatting, and fixed-width rendering for consistent columns. Description ❄️ FreezeLayersInMS is an AutoCAD and Civil 3D DCL layer manager for filtering current and xref layers, then freezing, thawing, locking, plotting, or switching them on and off. 🔍 It displays matching layer status in a fixed-width table and hides xref prefixes for readability while preserving the true layer names for operations. Function Syntax 🚀 Main command: FLMS3 🔍 Filter by current layers, xref layers, or current and xref layers together. 🧰 Apply Freeze, Unfreeze, Off, On, Lock, Unlock, Plot, or NoPlot to selected matching layers. SEO Optimized Overview ❄️ FreezeLayersInMS is an SEO-friendly AutoCAD layer visibility manager for controlling local and xref layer states from a custom DCL dialog. 🔍 The dialog includes a name filter, xref filter, xref multi-selection list, and a matching-layers table with source, layer name, on/off state, freeze state, lock state, plot state, color, and linetype. 🧠 Xref layer names are displayed without the xref| prefix to keep the list readable, but operations still use the true full layer names internally. 📌 This is useful for Civil 3D model-space cleanup, xref coordination, layer QA, plan-production visibility control, and project-layer standard management. Primary Workflow 1️⃣ Load the AutoLISP file in AutoCAD or Civil 3D with APPLOAD or your menu loader. 2️⃣ Run the command shown above from the AutoCAD command line. 3️⃣ Follow the dialog, selection prompts, or file prompts used by FreezeLayersInMS. 4️⃣ Review the command-line report and drawing result before continuing production work. Functionalities ✅ Filter layer names with wildcard-aware text input. ✅ Work with current layers, xref layers, or both. ✅ Filter xref names separately before displaying their layers. ✅ Multi-select matching layers from a fixed-width DCL table. ✅ Apply Freeze, Unfreeze, Off, On, Lock, Unlock, Plot, and NoPlot actions. ✅ Display ACI color names where possible for faster layer review. ✅ Clear filters and refresh the layer list interactively. Important Functions and AutoCAD API 🧩 flms3-get-all-xrefs enumerates xref block definitions available in the drawing. 🧩 flms3-get-layers builds the filtered current, xref, or combined layer list. 🧩 flms3-disp-line formats layer status columns for the DCL list box. 🧩 flms3-refresh-xrefs and flms3-refresh-layers keep the xref and layer lists synchronized with filters. 🧩 flms3-apply runs the selected layer-state action on selected layers. 🧩 flms3-snapshot and flms3-restore remember dialog state during the session. Result 🎯 The result is faster layer control inside ModelSpace, especially for drawings with many xrefs and long layer names. 🟢 Users can isolate the exact matching layers and apply visibility, locking, and plotting states without opening the full AutoCAD Layer Properties Manager. Operational Notes and Limitations ⚠️ The routine changes real layer states in the active drawing. ⚠️ Current-layer freezing is typically skipped or protected by AutoCAD, but users should still review the selected layers before applying actions. 🧠 The display name may remove xref prefixes for readability; the actual xref layer name is still used under the hood. Tags 🏷️ AutoCAD, 🏷️ AutoLISP, 🏷️ Civil 3D, 🏷️ Layer Manager, 🏷️ Xref Layers, 🏷️ Freeze Layers, 🏷️ Plot Layers, 🏷️ DCL Dialog, 🏷️ CAD Standards