Function Syntax: SetPlotDeviceNames Version: 1 Date: 17.10.2025 Version: 2 Date: 01.01.2026 AI+https://www.cadtutor.net/forum/topic/17353-change-printer/ AI+https://www.cadtutor.net/forum/topic/17353-change-printer/ Title SetPlotDeviceNames LISP for AutoCAD layouts and plotting management Description This program opens a dialog that lets the user review and batch-edit plotting settings per layout, plus viewport lock, annotation visibility, and viewport zoom operations, while keeping layout selection synchronized across columns. How it is started Command: SetPlotDeviceNames The user runs SetPlotDeviceNames at the AutoCAD command line to open the dialog interface. What the user does • The user reviews a table of layouts showing Layout Name, Plot Device, Page Setup, Paper Size, plus status columns for Lock, Anno, and Zoom. • The user filters layouts by a wildcard filter and chooses a scope: Selected or All displayed. • The user optionally includes or excludes Model from the list and from apply operations. • The user applies changes to the chosen scope using dedicated buttons for device, page setup, and paper size. • The user can also run viewport utility actions (lock, annotation visibility, zoom tools) for the chosen scope. Key interface behaviorsMulti-column synchronized selection meaning selecting rows in any list aligns the same rows in every other list.Horizontal scrolling per column meaning each of the four main text columns has its own slider that shifts the visible substring left or right without changing the underlying values.Selected full readouts show the complete Name and complete Paper for the first selected layout. Filtering and scope • Filter supports wildcard patterns such as star and question mark.Include Model in list controls whether the Model tab appears in the layouts list.Selected scope applies changes only to the currently selected rows.All displayed scope applies changes to every layout currently shown after filtering.Include Model in apply controls whether apply operations are allowed to target the Model tab. FunctionalitiesApply Plot Device changes the plotter configuration name for each targeted layout and refreshes plot device information.Apply Page Setup copies a named page setup into each targeted layout, or clears the page setup when the user selects none.Apply Paper Size sets the canonical media name based on the selected device and chosen paper display name.Lock sets all non-overall paper-space viewports in each targeted layout to locked.Unlock sets all non-overall paper-space viewports in each targeted layout to unlocked.AnnON sets ANNOALLVISIBLE to on for each targeted paper-space layout.AnnOFF sets ANNOALLVISIBLE to off for each targeted paper-space layout.Zoom Extents activates each layout, enters viewport context, zooms extents in each viewport, then marks that layout as having an extents zoom state for display purposes.Zoom Window prompts the user to pick two corners in a viewport on the first targeted layout, then applies the same zoom window to viewports in all targeted layouts without setting an extents zoom flag. Displayed status columnsLock status shows Locked, Unlocked, Mixed, NoVP, or Model depending on viewport presence and lock state.Anno status shows AnnOn, AnnOff, or unknown if not retrievable.Zoom status shows ZExt only when the tool explicitly marked the layout after Zoom Extents, otherwise it shows Z?. Important system variables and state handling • The program temporarily switches TILEMODE, CTAB, and MSPACE when reading or modifying paper-space layout settings, then restores them to the prior values to avoid disrupting the user environment.Undo grouping is used when applying viewport lock changes so the operation can be reverted cleanly. Prompts and user interactionZoom Window prompts for first corner and opposite corner inside a viewport, then applies the window consistently across selected layouts. • All other operations are button driven from the dialog and do not require selecting entities in the drawing. Safety and persistence behavior • Zoom state labeling is stored in the drawing named object dictionary using a dedicated dictionary name so older stored flags do not affect current display.ZExt is only shown when explicitly produced by this tool to prevent misleading zoom labels. Description 🖨️ SetPlotDeviceNames is an AutoCAD/Civil 3D AutoLISP DCL manager for batch editing layout plot devices, page setups, paper sizes, viewport locks, annotation visibility, and zoom settings. 📐 It provides filtered layout selection, synchronized columns, per-column horizontal scrolling, and apply tools for production plotting workflows. Function Syntax 🚀 Main command: SetPlotDeviceNames 🔍 Layout filter: supports * and ? wildcard filtering. 🖨️ Apply actions: Apply Device, Apply PageSetup, Apply Paper. 🔒 Viewport tools: Lock, Unlock, AnnON, AnnOFF, Zoom Extents, Zoom Window. SEO Optimized Overview 🖨️ SetPlotDeviceNames is an SEO-friendly AutoCAD layout plotting utility for managing plot device names, page setups, canonical media names, and paper sizes from one DCL interface. 📊 The dialog shows synchronized layout columns for Name, Plot Device, Page Setup, Paper Size, Lock, Anno, and Zoom, with compact column widths and horizontal sliders for long values. 🔍 Users can filter layout names using wildcard patterns, include or exclude Model in the list/apply scope, and choose between selected rows or all displayed rows. 📐 The tool can batch-apply plot devices, page setups, and paper sizes to selected layouts, while also managing paper-space viewport lock state and annotation visibility. 🧭 Zoom tools let the user apply Zoom Extents or pick a Zoom Window for layout viewports, with zoom state persisted through a named-object dictionary record. Core AutoCAD / Civil 3D Workflow ✅ List layouts with plot device, page setup, paper size, viewport lock, annotation, and zoom status. ✅ Filter layouts with * and ? wildcard support. ✅ Select all, select none, selected scope, or all displayed scope. ✅ Apply plot device changes to selected layouts. ✅ Apply existing page setups to layouts. ✅ Apply compatible paper/media names from the selected plot device. ✅ Lock or unlock paper-space viewports in selected layouts. ✅ Toggle annotation visibility and run Zoom Extents or Zoom Window viewport tools. Important Functions and Implementation Details 🧩 spdn:filter-layouts builds the working layout list from the current drawing and wildcard filter. 🧩 spdn:fill-device-popup, spdn:fill-pagesetup-popup, and spdn:fill-paper-popup populate the DCL dropdown controls. 🧩 spdn:apply-device-to-layouts and spdn:apply-paper-to-layouts perform the batch plotting updates. 🧩 spdn:set-locked-for-layouts changes paper-space viewport lock states. 🧩 spdn:set-anno manages ANNOALLVISIBLE behavior per selected layouts. 🧩 spdn:zoom-layout-viewports, spdn:do-zoom-extents, and spdn:do-zoom-window-execute handle viewport zoom actions. 🧩 spdn:ensure-nod-dict and xrecords store persistent zoom-state flags in the drawing database. Result 🎯 Layout plotting settings can be cleaned and standardized faster across many sheets. 🖨️ Plot device, page setup, and paper-size mismatches become easier to find and correct. 🔒 Viewport lock, annotation, and zoom preparation are handled in the same production dialog. Important Notes ⚠️ This routine changes layout plotting settings and viewport states. Review the selected/all-displayed scope before applying changes. ⚠️ Model layout inclusion is optional and controlled separately for list and apply operations. ℹ️ The code creates a temporary DCL file at runtime and deletes it after the dialog closes. Search Keywords 🔎 AutoCAD plot device manager, batch page setup AutoLISP, layout paper size update, viewport lock manager, Civil 3D plotting utility Tags 🏷️ AutoCAD, 🏷️ AutoLISP, 🏷️ Civil 3D, 🏷️ Plot Device, 🏷️ Page Setup, 🏷️ Paper Size, 🏷️ Layout Manager, 🏷️ Viewport Lock, 🏷️ Annotation Visibility, 🏷️ Zoom Extents