Function Syntax: RenBlocks Version: 1.1 Date: 20.06.2026 6:38:49PM https://www.theswamp.org/index.php?topic=42378.15 🚀 Function Syntax: RenameBlockPreview Command: RenBlocks Version: v5 AutoLISP DCL block rename utility Description RenameBlockPreview is an SEO-friendly AutoCAD and Civil 3D AutoLISP utility for renaming block definitions through a clean dialog interface. The RenBlocks command opens a self-contained DCL dialog where users can search, select, preview-indicate, and rename drawing blocks without manually browsing the block table. It is useful for CAD managers, Civil 3D production teams, drafting technicians, and AutoCAD users who manage drawings with many block definitions. Functionalities 🔍 Search block definitions - filters the block list in real time using the Search field. 🧱 Clean block list - excludes anonymous blocks, xref-nested blocks, Model Space records, and Paper Space records. 🟢 Preview indicator - uses a DCL image tile as a visual confirmation when a block is selected. ✏️ Rename selected block - applies a new name to the selected block definition from the dialog. 🔒 Duplicate-name protection - checks whether the target block name already exists before renaming. 🔄 List refresh after rename - updates the displayed block list immediately after a successful rename. 💾 Persistent filter memory - remembers the last search filter with session variables and AutoCAD CFG storage. 📌 Dialog position memory - reuses saved dialog coordinates when available. 🧹 Self-cleaning temporary DCL - writes a unique DCL file at runtime and deletes it when finished. Important Commands and Helper Functions RenBlocks - main command that launches the Rename Block dialog. RB:WriteDCL - generates the temporary DCL dialog file. RB:Names - collects and sorts matching block names. RB:Keep-p - filters anonymous, xref, model space, and paper space block records. RB:OnSearch - refreshes the list when the search field changes. RB:OnRename - validates and performs the block rename. Typical Workflow 1. Type RenBlocks in the AutoCAD command line. 2. Use the Search box to filter the list of block definitions. 3. Select a block from the list and confirm the selected-block indicator. 4. Type the new block name in the New name field. 5. Press Rename to apply the change and refresh the list. Notes and Limitations ⚠️ This routine renames the block definition, therefore all references using that definition are affected. ⚠️ The DCL image tile is a selected-block indicator and does not render full block geometry. ⚠️ Anonymous blocks, xref-nested blocks, Model Space, and Paper Space records are intentionally skipped. ⚠️ Requires AutoCAD Visual LISP ActiveX support through vlax-get-acad-object and related functions. Tags 🏷️ AutoCAD, 🏷️ AutoLISP, 🏷️ Civil 3D, 🏷️ Rename Block, 🏷️ Block Manager, 🏷️ DCL Dialog, 🏷️ CAD Productivity