Function Syntax: AAOFF AI+https://forums.autodesk.com/t5/autocad-forum/annotative-objects-not-displaying-in-layout-viewports/td-p/7949416 Program purpose This AutoLISP program defines the command AAOFF to help you set the AutoCAD system variable ANNOALLVISIBLE to 0 for user-selected tabs (Model and Layouts). What the user must do The user runs the command AAOFF and then selects which tabs to update from a multi-select list. Key user interface behavior The program builds a temporary DCL dialog at runtime, displays it, and deletes the temporary DCL file after use. The dialog contains a list of all available tabs including Model and each Layout name. Multi-selection is supported, and the dialog provides quick selection buttons. FunctionalitiesBuilds a dialog dynamically by writing a DCL definition into a temporary file (for example AAOFF.dcl).Lists all drawing tabs (Model plus all Layout tabs) by querying the active document layouts collection.Defaults to selecting all tabs when the dialog opens, so the operation applies everywhere unless the user narrows it down.Provides selection shortcuts via buttons:All selects every tab in the list.None clears the selection.Applies the change per selected tab by switching to each chosen tab using CTAB and then executing the command ANNOALLVISIBLE with value 0.For layout tabs, forces Paper Space before applying the change by setting the document MSPACE state to false when TILEMODE indicates a layout environment.Restores the prior environment after processing, including restoring the previous CTAB, TILEMODE, and MSPACE values as applicable.Handles no-selection and cancel cases with clear console feedback and no changes applied when appropriate. Important technical notes ANNOALLVISIBLE is stored per Model tab and per Layout tab, not per viewport entity, so the program correctly iterates through tabs rather than viewports. The operation is implemented by calling the AutoCAD command line: ._ANNOALLVISIBLE then 0 for each selected tab. Major components in the code AAOFF:WriteDcl writes the dialog definition to a temporary DCL file. AAOFF:GetTabNames returns a list of tab names including Model and layouts from the active document. AAOFF:MakeAllIndexString generates the default selection string for the list box such as 0 1 2 ... n-1. AAOFF:IdxList->Names converts the selected list box indices into tab name strings. AAOFF:SetAnnoAllVisible0 performs the tab switching and sets ANNOALLVISIBLE to 0, then restores the original state. c:AAOFF is the command entry point that orchestrates dialog creation, selection capture, execution, and cleanup. Outputs and user feedback If the user selects one or more tabs, the program updates those tabs and exits quietly. If the user selects nothing, it prints: A AOFF: Nothing selected. No changes made. If the user cancels, it prints: A AOFF: Cancelled. If the dialog cannot load, it prints: A AOFF: Could not load dialog.