Function Syntax: AnnoAllOnOff Version: 1.1 Date: 20.06.2026 6:38:54PM AI+https://forums.autodesk.com/t5/autocad-forum/annotative-objects-not-displaying-in-layout-viewports/td-p/7949416 AAVIS Description This AutoLISP program provides a single command that lets the user set the AutoCAD system setting ANNOALLVISIBLE to either Visible (value 1) or Hidden (value 0) for a user-chosen set of drawing tabs (Model and Layouts). It uses a dialog box (DCL) that is generated and loaded automatically from inside the LSP at runtime, so no separate DCL file is required to be installed or maintained by the user. User Interaction • Run the command AAVIS in the AutoCAD command line. • A dialog opens with two radio buttons:Visible (AAON) sets ANNOALLVISIBLE = 1.Hidden (AAOFF) sets ANNOALLVISIBLE = 0. • In the same dialog, the user selects which tabs to update from a multi-select list containing Model and all Layout tabs. • The user can use helper buttons:All selects all tabs in the list.None clears the selection in the list. • Clicking OK applies the change to the selected tabs. • Clicking Cancel exits without making changes. Functionalities • Sets the AutoCAD variable ANNOALLVISIBLE to the chosen mode value (1 or 0) for the selected tabs. • Supports three tab selection workflows:All tabs selected (fast global update).None selected (no action is performed). • A user-defined subset (only the chosen tabs are modified). • Automatically switches to each selected tab using CTAB and applies the setting. • When a Layout tab is active, forces Paperspace by setting MSPACE to false before running the command, ensuring consistent behavior in layouts. • Restores the user environment after completion by resetting: • The previously active tab (CTAB). • The previous Model or Layout mode (TILEMODE). • The prior viewport mode in layouts (MSPACE) when applicable. Important Behavior Notes • The selection list represents tabs (Model and Layouts), not individual viewport objects inside a layout. • The program changes the annotation visibility setting at the tab level by issuing the AutoCAD command ANNOALLVISIBLE with the appropriate value. • If the user selects no tabs and clicks OK, the program prints a message indicating no changes were made. Files and Dependencies • Uses VLAX and therefore calls (vl-load-com). • Generates a temporary DCL file (for the dialog definition) at runtime and deletes it after the dialog closes, so no permanent DCL file remains on disk. • Does not require the user to select blocks, objects, or viewports in the drawing area; all interaction is via the dialog list selection. Description 🧩 AnnoAllOff is an AutoCAD and Civil 3D AutoLISP utility designed for faster, cleaner CAD layer and drawing-management workflows. 📌 It provides a DCL picker for setting ANNOALLVISIBLE to 0 on selected Model/Layout tabs, helping control annotative object visibility before plotting, review, or cleanup. Function Syntax 🚀 Main command: AAOFF 🎛️ Dialog: ANNOALLVISIBLE -> 0 (Choose Tabs) SEO Optimized Overview 🔇 This AutoCAD annotation visibility tool sets ANNOALLVISIBLE to 0 for selected Model and Layout tabs. 🎛️ The routine dynamically creates a DCL dialog and lists the drawing tabs so the user can process All, None, or selected layouts. 📐 It switches through the selected tabs, applies the system variable, and restores the previous drawing state after completion. 📌 This is useful for AutoCAD and Civil 3D drawings containing annotative text, dimensions, labels, multileaders, and layout annotation that must be controlled before plotting or review. Primary Workflow 1️⃣ Run AAOFF at the AutoCAD command line. 2️⃣ Review the list of Model/Layout tabs in the DCL dialog. 3️⃣ Use All, None, or Ctrl/Shift multi-select to choose tabs. 4️⃣ Click OK to apply ANNOALLVISIBLE = 0 to the selected tabs. 5️⃣ The routine restores the previous tab and model/paper-space state. Functionalities DCL tab picker - shows Model and Layout tabs in a multi-select list. Default select all - prepares the dialog for full drawing processing by default. Per-tab annotation visibility - applies ANNOALLVISIBLE to each selected tab. State restoration - restores CTAB, TILEMODE, and MSPACE after processing. Temporary DCL cleanup - unloads the dialog and deletes the generated DCL file. Important Commands and Functions 🧩 ANNOALLVISIBLE controls whether all annotation scales are visible. 🧩 CTAB is changed to process each selected tab. 🧩 TILEMODE and MSPACE are restored after the operation. 🧩 load_dialog, new_dialog, and start_dialog manage the DCL picker. Important Notes ⚠️ The tool sets ANNOALLVISIBLE to 0; it does not delete annotation or remove annotation scales. ⚠️ The code comments specify that ANNOALLVISIBLE is stored per Model tab and per Layout tab, not per viewport entity. ⚠️ The command changes tabs during execution, then restores the previous tab and model/paper-space state. Tags 🏷️ AutoCAD, 🏷️ Civil 3D, 🏷️ AutoLISP, 🏷️ Visual LISP, 🏷️ DCL dialog, 🏷️ Annotation visibility, 🏷️ ANNOALLVISIBLE, 🏷️ Layouts, 🏷️ Model Space, 🏷️ Paper Space, 🏷️ Annotative objects, 🏷️ Drawing cleanup, 🏷️ CAD standards, 🏷️ Viewport workflow, 🏷️ CAD productivity