Function Syntax: FreezeLayersInVP / FLVP Version: 1.1 Date: 20.06.2026 6:38:55PM AI FreezeLayersInVP (FLVP) This program allows the user to filter and freeze layers directly in the current viewport. Key Functionalities:Accent-insensitive search: typing Ruckbau will match Rückbau. • Choose between Current_Layers, Xref_Layers, or Current_and_Xref_Layers. • When Xref_Layers is selected, a list of attached Xrefs is displayed so you can filter by specific reference files. Matching layers are displayed in a multi-column list with fixed headers:Src (Current / Xref)NameOn, Frz, Lck, PltColor (with known ACI names, e.g. 4 = Cyan)LinetypeDescription • Selected layers are frozen in the active viewport using the VPLAYER command.Persistent settings: last filter text, selected mode (Current/Xref/Both), and chosen Xrefs are remembered across sessions. Usage: 1. Run the command FLVP. 2. Enter a filter text (accent-insensitive) to narrow down layers. 3. Choose which layers to include (Current, Xref, or Both). 4. Select one or more layers from the matching list. 5. Press Freeze to apply. Description ❄️ FreezeLayersInVP is an AutoCAD and Civil 3D AutoLISP layer-control utility for freezing selected current and xref layers in viewport workflows. 🧊 It provides a DCL layer browser with filters, xref selection, layer-status columns, and VPLAYER-based freezing for selected layer names. Function Syntax 🚀 Main dialog command: FreezeLayersInVP 🔁 Alias command: FLVP 🧰 Load the LSP with APPLOAD and run the command in AutoCAD or Civil 3D. SEO Optimized Overview ❄️ FreezeLayersInVP is an SEO-friendly AutoCAD viewport layer freeze tool for managing layer visibility in paper-space viewport production. 🧊 The routine opens a DCL dialog with a layer name filter, source toggles for Current, Current and Xref, and Xref layers, plus an xref picker for narrowing the displayed xref layer list. 🔍 The list uses faux columns for Src, Name, On, Frz, Lck, Plt, Color, LT, and Desc so the user can review layer status before freezing. 🌐 The filter supports wildcard-style layer searching and includes accent-insensitive normalization for German and Latin characters. 🧩 After confirmation, the selected layer names are passed to AutoCAD VPLAYER Freeze using command logic equivalent to VPLAYER freeze layer all viewports based on the current implementation. 📌 This is useful for Civil 3D sheets, xref-heavy layouts, plan production, viewport cleanup, layer visibility coordination, and fast paper-space layer management. Primary Workflow 1️⃣ Load FreezeLayersInVP into AutoCAD or Civil 3D with APPLOAD. 2️⃣ Run FreezeLayersInVP from the command line. 3️⃣ Use the dialog or command prompts to select the target layouts, layers, viewports, or plot settings. 4️⃣ Review the preview, status list, or command-line feedback before applying changes. 5️⃣ Apply the operation and verify the result in the active drawing. Main Functionalities ✅ Browse drawing layers in a DCL layer manager style dialog. ✅ Filter layer names using wildcard patterns such as * and ?. ✅ Display current drawing layers, xref layers, or combined layer groups. ✅ Pick specific xrefs and show only layers belonging to those xrefs. ✅ Show layer status columns for On, Freeze, Lock, Plot, Color, Linetype, and Description. ✅ Multi-select layers from the filtered result table. ✅ Freeze selected layers through the AutoCAD VPLAYER command. ✅ Persist filter and source-toggle choices with environment variables between sessions. ✅ Provide FLVP as a fast command alias. Important Commands and Helper Functions 🧩 str-join joins selected layer or xref names for messages and environment storage. 🧩 split and parse-indexes convert DCL list-box selection strings into numeric row indexes. 🧩 deaccent normalizes accented characters to make layer filtering more reliable. 🧩 has-wildcards detects whether the filter pattern contains wildcard characters. 🧩 get-all-xrefs collects xref names used for the xref picker. 🧩 layer-xref-name extracts the xref prefix from layer names that contain the vertical-bar separator. 🧩 get-all-layers scans the drawing layer table and builds layer records. 🧩 filter-layers applies source toggles, selected xrefs, and the user filter pattern. 🧩 get-layer-props reads layer state values such as On, Freeze, Lock, Plot, Color, Linetype, and Description. 🧩 fill-layers-list rebuilds the fixed-width DCL layer table. Practical Result 🎯 The result is faster viewport layer cleanup for AutoCAD and Civil 3D paper-space workflows. 🧊 Users can isolate the exact current or xref layers they want to freeze, review their status, and apply the viewport-freeze operation from one dialog. ✅ FreezeLayersInVP improves sheet readability, xref visibility control, and layout preparation for complex production drawings. Important Notes ⚠️ The routine uses VPLAYER freeze operations and therefore changes viewport layer visibility settings in the active drawing context. ⚠️ The current implementation passes the All option in the VPLAYER call; verify whether your desired workflow is all viewports or current viewport before batch use. ⚠️ Xref layer names must be available in the layer table for xref filtering and freezing. ⚠️ On very large drawings, layer scanning and wide fixed-column list display may take additional time. Tags 🏷️ AutoCAD, 🏷️ Civil 3D, 🏷️ AutoLISP, 🏷️ Visual LISP, 🏷️ DCL dialog, 🏷️ CAD automation, 🏷️ CAD productivity, 🏷️ Viewport layers, 🏷️ VPLAYER, 🏷️ Layer freeze, 🏷️ Freeze layers, 🏷️ Xref layers, 🏷️ Layer filter, 🏷️ Paper space, 🏷️ Viewport visibility, 🏷️ Layer manager, 🏷️ FLVP, 🏷️ Civil 3D sheets