Function Syntax: Command Version: 1 Date: 23.12.2025 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.