Function Syntax: SteSysVar Version: 4 Date: 20.10.2025 N/A Command names • SteSysVar (type SteSysVar at the AutoCAD command line) • SteSysVarPublish (type SteSysVarPublish at the AutoCAD command line) Description This program is a system variable preset manager with a tabbed dialog UI. It lets the user select recommended values for common AutoCAD system variables via dropdown lists, view grouped help, copy help content to clipboard, and then apply all selected values in one action. Main purpose • Provide a consistent environment setup by applying curated presets for file handling, dialogs, drawing behavior, selection, drafting aids, xrefs, and publish options. • Reduce manual setvar typing and avoid missing dependent settings by applying everything at once. Prerequisites • Requires Visual LISP COM support via (vl-load-com). • Requires permission to write a temporary DCL file created by vl-filename-mktemp. • Clipboard copy uses WScript.Shell and PowerShell Set-Clipboard, so it is intended for Windows environments. User interaction • Opens a tabbed dialog titled System Variables - Presets. • Tabs available: • File. • Dialogs. • Drawing Behavior. • Selection. • Drafting Aids. • Xrefs. • Publish. • Each tab shows rows of: • A system variable name label. • A dropdown list where each item is formatted as value - description. • Buttons on each tab: Select All and Select None for bulk dropdown changes on the current tab. Explorer to open the folder containing the LISP file path reference. Notepad++ to open the LISP file in Notepad++ (or fallback editors). Reload to reload the LISP from disk. Help to open the grouped help dialog. OK applies the selected values, and Cancel exits without applying. High-level workflow • Sets a fixed on-disk LISP path using USERPROFILE (stored in *SSV-lsp-path*) for Explorer, Notepad++, reload, and copy-path actions. • Defines system variable groups (tabs) and preset targets in *SSV-groups* and *SSV-vars*. • Defines value meanings for dropdown labels using *SSV-meanings* and fallback meanings in *SSV-binary-fallbacks*. • Writes a temporary multi-dialog DCL file (one dialog per tab plus the help dialog) using writeSSVDCL. • Opens the first requested tab and allows tab switching by returning dialog codes and reopening the matching dialog page. • Persistently stores each dropdown selection index across tabs during the session using *SSV-selections*. • On OK, applies all selections across all groups using setvar wrapped in a safe call. Functionalities • Tabbed dropdown UI for system variable presets. • Per-variable dropdown choices built from: • A preset value (always inserted as the first dropdown item). • Additional documented values with short meanings. • Fallback labeled values when no full mapping exists. • Session persistence: selections are remembered when switching tabs (index-based storage). • Bulk operations on current tab: Select All sets each dropdown on the current tab to the preset item (first list item, index 0). Select None attempts to set each dropdown on the current tab to value 0 when that value exists in the available choices. • Help system: • Builds grouped help text automatically from the same group and meaning definitions. • Displays help in a list box with multi-select support. Copy Selected copies only highlighted help lines to clipboard. Copy All copies the full help text to clipboard. Copy Path copies the LISP path reference to clipboard. Unicode On or Off toggles the bullet and arrow glyph style in the help output. • Convenience actions: • Opens Explorer to the folder containing the LISP file (or selects the file if available). • Opens the LISP in Notepad++ using a configured path, then falls back to launching notepad++ from PATH, then falls back to Notepad. • Reloads the LISP file from disk. System variables covered • File tab: FILEDIA (file dialog enable or suppress). PROXYGRAPHICS (proxy graphics save behavior). CMDECHO (command echo behavior). • Dialogs tab: HPDLGMODE (hatch dialog enable or disable). • Drawing Behavior tab: ORTHOMODE, MIRRTEXT, REGENMODE, PEDITACCEPT, TRIMEXTENDMODE, PLINEWID, DIMASSOC, DRAGMODE, MBUTTONPAN, WIPEOUTFRAME. • Selection tab: PICKFIRST, PICKADD, PICKBOX, GRIPOBJLIMIT, SELECTIONPREVIEW, SELECTIONCYCLING, HIGHLIGHT, PICKDRAG. • Drafting Aids tab: OSMODE, OTRACK, AUTOSNAP, DYNMODE, UCSFOLLOW, ZOOMFACTOR, DONUTID, DONUTOD. • Xrefs tab: XREFOVERRIDE (xref layer override behavior). • Publish tab: PUBLISHCOLLATE (publish collation behavior). Important commands and calls highlighted writeSSVDCL — generates the complete tabbed DCL file plus the help dialog into a temp location. SSV:open-page — opens a specific tab by loading the corresponding DCL dialog and wiring its actions. SSV:choices-for-dropdown — builds dropdown values and labels, ensuring the preset is first and preventing duplicate value entries. action_tile on each dropdown — saves selection indexes into *SSV-selections*. SteSysVar:apply-all — applies the chosen numeric values across all tabs using setvar. SSV:safe-setvar — wraps setvar in a catch-all to avoid hard stops on protected or invalid settings. SSV-help-local — opens the help dialog and enables copy and Unicode toggles. SSV:clipboard-put — copies text to clipboard by writing a temp file then invoking PowerShell Set-Clipboard via WScript.Shell. SSV:open-lsp-folder and SSV:open-this-in-npp — open Explorer and Notepad++ for the configured LISP path. SSV:reload-self — reloads the LISP from the configured path. Outputs and messages • On apply: prints SteSysVar: applied selections. • On cancel: prints SteSysVar: canceled. • If the LISP file cannot be found for reload or open actions: alerts that it cannot find the file on disk. Operational notes and limitations • Selections persist only during the current run while switching tabs because *SSV-selections* is reset at the start of SteSysVar:run. • The tool assumes the configured path stored in *SSV-lsp-path* is valid for Explorer, Notepad++, reload, and copy path actions; if the path differs per machine, SSV:set-path must be updated. • Clipboard copy relies on PowerShell; if PowerShell is restricted by policy, the copy actions will fail. • Select None only sets value 0 when that value is present in the computed dropdown values list for that variable. • The program primarily applies numeric setvar values; it does not validate each value against the current AutoCAD vertical or profile beyond catch-all error handling.