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://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/assign-a-page-setup-to-all-layout-tabs-prior-to-or-without-going/m-p/11757775#M34324 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.