AnnoAllOn

Short description

  • Opens a DCL picker to choose Model and Layout tabs, then sets ANNOALLVISIBLE to 1 on the selected tabs.
  • Includes quick selection controls for All and None before applying changes.
annoallon 000

Command:

  • Command: AAON

Description:

  • Generates a temporary DCL dialog at runtime listing all tabs, including Model, with multi-select enabled.
  • On confirmation, switches to each selected tab and runs ANNOALLVISIBLE with value 1 to enable annotation visibility for that tab.
  • Preserves and restores user context by saving CTAB, TILEMODE, and MSPACE before changes, then restoring them afterward.

Helper function: (if any)​

  • AAON:WriteDcl writes the dialog definition to a temporary .dcl file used for the session.
  • AAON:GetTabNames collects tab names from the document layouts via ActiveX and returns them in display order, including Model.
  • AAON:MakeAllIndexString creates the list box index string needed to select every item by default and via the All button.
  • AAON:IdxList->Names converts the list box selection index string into a list of tab names to process.
  • AAON:SetAnnoAllVisible1 iterates selected tabs, forces paperspace on layout tabs when applicable, runs ANNOALLVISIBLE to set it to 1, then restores previous state.
  • c:AAON orchestrates the workflow: builds the tab list, loads the dialog, handles All and None actions, applies updates, and performs cleanup.

Functionalities:

  • Runtime DCL generation creates and loads a temporary dialog file for tab selection.
  • Multi-select tab picker supports choosing any combination of Model and Layout tabs to update.
  • All selects every listed tab by setting the list box to an auto-generated index string.
  • None clears the list box selection to prevent changes from being applied.
  • Per-tab application switches CTAB to each selected tab and applies ANNOALLVISIBLE value 1.
  • Layout handling forces paperspace on layout tabs by setting MSPACE to false when in a layout context.
  • State restoration restores prior CTAB, TILEMODE, and MSPACE after processing completes.

Result:

  • If the user confirms a selection, ANNOALLVISIBLE is set to 1 on each selected tab and the previous tab and mode settings are restored.
  • If no tabs are selected, prints AAON: Nothing selected. No changes made.
  • If the dialog is cancelled, prints AAON: Cancelled.
  • If the dialog cannot be loaded, prints AAON: Could not load dialog.
  • Always unloads the dialog and deletes the temporary DCL file at the end of execution.

Images, animations etc.

annoallon 000
Pixel

Additional info:

Share this page:

0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
Tags: Layouts, Paper Space
0
Would love your thoughts, please comment.x
()
x