Main manager responsible for:

  • registry of known system variables
  • caching values
  • invoking backend getVar/setVar
  • dispatching sysvar change events

Properties

events: { sysVarChanged: AcCmEventManager<AcDbSysVarEventArgs> } = ...

System variable related events

Type declaration

  • sysVarChanged: AcCmEventManager<AcDbSysVarEventArgs>

    Fired after a system variable is changed directly through the SETVAR command or by entering the variable name at the command line.

Methods

  • Applies one system variable mutation with shared transaction and event rules.

    Database-backed variables should mutate through AcDbDatabase property setters or setVar. Non-database variables mutate through the cache.

    Type Parameters

    • T

    Parameters

    • name: string

      System variable name (normalized internally)

    • oldVal: T

      Value before mutation; recorded for undo when a transaction is active

    • newVal: T

      Value after mutation; used for change detection and event dispatch

    • db: AcDbDatabase

      Database whose transaction manager governs recording and strict mode

    • mutate: () => void

      Callback that performs the actual value write

    Returns void