Function Syntax: AAON AI+https://forums.autodesk.com/t5/autocad-forum/annotative-objects-not-displaying-in-layout-viewports/td-p/7949416 Key user interface behavior The program generates a temporary DCL dialog at runtime, loads it, then removes the temporary DCL file after completion. The dialog displays all available tabs including Model and every Layout name from the drawing. Multi-selection is supported, including standard Ctrl and Shift selection behavior. FunctionalitiesBuilds a dialog dynamically by writing a DCL definition into a temporary file (for example AAON.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 change applies to every tab unless the user limits the scope.Provides quick selection controls using dialog buttons:All selects every tab in the list box.None clears the selection completely.Applies the change per selected tab by iterating through selected tab names, switching to each tab via CTAB, then setting ANNOALLVISIBLE to 1.For layout tabs, forces Paper Space before setting the value by setting the document MSPACE to false when TILEMODE indicates a layout environment.Restores the prior working state after completion, returning CTAB, TILEMODE, and MSPACE to their original values as applicable.Provides safe exit behavior by making no changes when the user cancels or selects nothing. Important technical notes ANNOALLVISIBLE is stored per Model tab and per Layout tab, so updating it correctly requires switching tabs rather than targeting viewport entities. The variable is set by issuing the AutoCAD command line call ._ANNOALLVISIBLE with the value 1 on each chosen tab. Major components in the code AAON:WriteDcl writes the DCL dialog definition to a temporary file for runtime UI creation. AAON:GetTabNames collects tab names (Model plus layouts) from the active document layout collection. AAON:MakeAllIndexString generates the index list string to select all items by default such as 0 1 2 ... n-1. AAON:IdxList->Names converts selected list box indices into the corresponding tab name strings. AAON:SetAnnoAllVisible1 switches tabs, forces Paper Space on layouts, applies ANNOALLVISIBLE to 1, then restores the original state. c:AAON is the command entry point that builds the dialog, captures the selection, executes the update, and cleans up resources. Outputs and user feedback If one or more tabs are selected, the program applies the update and exits without additional prompts. If no tabs are selected, it prints: A AON: Nothing selected. No changes made. If the user cancels, it prints: A AON: Cancelled. If the dialog fails to load, it prints: A AON: Could not load dialog.