Function Syntax: CPS Version: 1.1 Date: 20.06.2026 6:38:55PM https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autolisp-for-multiply-change-plotter-on-all-layouts/td-p/12045940 Description Command name cps (run by typing CPS in AutoCAD). What this LISP does This routine iterates through every paper-space layout tab (all layouts except Model) and standardizes the plot device (printer or PC3) by switching each layout’s ConfigName based on its current value. User interaction • No selection is required (no blocks, objects, or prompts). • The user only needs to run the command CPS. Main logic • Get the active AutoCAD document via vla-get-ActiveDocument on vlax-get-acad-object. • Retrieve the document layouts collection via vla-get-Layouts. • Loop all layouts using vlax-for. • Skip layout named Model (only paper-space tabs are modified). • For each remaining layout, read its current plot device using vla-get-ConfigName and then set a new device using vla-put-ConfigName. Device switching rules • If the layout plot device equals Canon iPF770.pc3, then set it to AutoCAD PDF (High Quality Print).pc3. • Otherwise (any other device), set it to Canon iPF770V2.pc3. Functionalities • Bulletproof batch-update of plot device across all paper-space layouts in the drawing. • Ensures that any layout currently using Canon iPF770.pc3 is redirected to a high-quality PDF output device. • Forces every other layout device to a specific target device Canon iPF770V2.pc3 for consistency. Important notes • This will overwrite the plot device setting for every layout tab except Model. • It does not copy page setup properties like paper size, plot style table, plot area, or scale; it only changes the device referenced by ConfigName. • The PC3 names must exist on the machine; if a referenced PC3 is missing, plotting or configuration may fail later. Description 🖨️ PageSetupAllLayouts is an AutoCAD and Civil 3D AutoLISP plotting utility for batch-updating plotter configuration names across all paper-space layouts. 📄 The command loops through every layout except Model and changes each layout's ConfigName based on the current configured plot device. Function Syntax 🚀 Main dialog command: cps 🧰 Load the LSP with APPLOAD and run the command in AutoCAD or Civil 3D. SEO Optimized Overview 🖨️ PageSetupAllLayouts is an SEO-friendly AutoCAD plot-device update routine for paper-space layouts, plot configuration cleanup, and sheet plotting preparation. 📄 The routine accesses the active document through Visual LISP ActiveX, iterates through the Layouts collection, skips Model, reads each layout ConfigName, and writes a new ConfigName. 🔁 In the current code, layouts using Canon iPF770.pc3 are changed to AutoCAD PDF (High Quality Print).pc3, while other paper-space layouts are changed to Canon iPF770V2.pc3. 🧰 Although the file comment says Copy current layout page setup to all layout tabs, the implementation specifically updates plot device names through vla-put-ConfigName rather than cloning a complete page setup object. 📌 This is useful for CAD offices migrating plotter device names, replacing outdated PC3 files, repairing broken plotting devices, and preparing Civil 3D layout sheets for consistent publishing. Primary Workflow 1️⃣ Load PageSetupAllLayouts into AutoCAD or Civil 3D with APPLOAD. 2️⃣ Run cps 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 ✅ Process all paper-space layouts in the active drawing. ✅ Skip the Model tab automatically. ✅ Detect layouts currently assigned to Canon iPF770.pc3. ✅ Replace Canon iPF770.pc3 with AutoCAD PDF (High Quality Print).pc3. ✅ Assign Canon iPF770V2.pc3 to other paper-space layouts. ✅ Use Visual LISP ActiveX layout access for direct ConfigName updates. ✅ Provide a compact command for fast plot device migration. Important Commands and Helper Functions 🧩 vla-get-ActiveDocument retrieves the current AutoCAD drawing. 🧩 vla-get-Layouts accesses the layout collection. 🧩 vlax-for iterates over all layout objects. 🧩 vla-get-Name is used to skip the Model layout. 🧩 vla-get-ConfigName reads the current PC3 plot configuration assigned to each layout. 🧩 vla-put-ConfigName writes the replacement plot device name. Practical Result 🎯 The result is a faster plot device update workflow for AutoCAD and Civil 3D layout tabs. 🖨️ Users can update PC3 configuration names across all paper-space layouts without opening Page Setup Manager for each sheet. ✅ PageSetupAllLayouts supports plotting consistency, PDF output preparation, and office plotter migration tasks. Important Notes ⚠️ The command name is cps. ⚠️ The current logic is hard-coded to Canon iPF770.pc3, AutoCAD PDF (High Quality Print).pc3, and Canon iPF770V2.pc3. ⚠️ The routine does not copy a full named page setup; it updates the ConfigName property only. ⚠️ The specified PC3 files must exist and be valid in the AutoCAD plotting environment. ⚠️ Review the hard-coded plotter names before using the routine in another office or workstation. Tags 🏷️ AutoCAD, 🏷️ Civil 3D, 🏷️ AutoLISP, 🏷️ Visual LISP, 🏷️ DCL dialog, 🏷️ CAD automation, 🏷️ CAD productivity, 🏷️ Page setup, 🏷️ Plot device, 🏷️ PC3, 🏷️ ConfigName, 🏷️ Plotter migration, 🏷️ AutoCAD PDF, 🏷️ Layout plotting, 🏷️ Paper space, 🏷️ Batch plot setup, 🏷️ Publishing, 🏷️ cps