This is an example of the firing Rate
The Commands issued were
DimLinear
Mtext
and 2 button clicks to change to Layout1 and back to modelspace.
... oh, I have a reactor on the DIM commands to ensure the Dimension Layer is set correctly when I place dimensions ...
.. .. so 2 firings were due to my own reactors changing the Layer, then restoring it .. { see the
System variable: CLAYER reports }
27 callbacks for the above 4 actions.
There was no lisp routines run with multiple calls to "SETVAR" .. I'll leave that to you to check
This is the Reactor Initialiser and callback
(if rkb:sysvarchanged
(vlr-remove rkb:sysvarchanged)
)
(setq rkb:sysvarchanged
(vlr-sysvar-reactor
nil
'((:vlr-sysvarchanged . rkbf:reportvarchange))
)
rkbg:FiringCount 0
)
(defun rkbf:reportvarchange (r d)
(setq rkbg:FiringCount (1+ rkbg:FiringCount))
(princ (strcat "\nSystem variable: "
(car d)
" changed. :Count = "
(itoa rkbg:FiringCount)
"\n"
)
)
)
This is the Command report :
Command: _dimlinear
System variable: CLAYER changed. :Count = 1
Specify first extension line origin or <select object>:
System variable: LASTPOINT changed. :Count = 2
Specify second extension line origin:
System variable: LASTPOINT changed. :Count = 3
Non-associative dimension created.
Specify dimension line location or
[Mtext/Text/Angle/Horizontal/Vertical/Rotated]:
Dimension text = 104.66
System variable: CLAYER changed. :Count = 4
Command:
Command:
Command: _mtext Current text style: "Standard" Text height: 2.5
Specify first corner:
System variable: LASTPOINT changed. :Count = 5
Specify opposite corner or [Height/Justify/Line spacing/Rotation/Style/Width]:
System variable: LUNITS changed. :Count = 6
System variable: LUNITS changed. :Count = 7
System variable: LUNITS changed. :Count = 8
System variable: LUNITS changed. :Count = 9
System variable: LUNITS changed. :Count = 10
System variable: LUNITS changed. :Count = 11
System variable: TEXTSIZE changed. :Count = 12
System variable: TEXTSTYLE changed. :Count = 13
System variable: TSPACETYPE changed. :Count = 14
System variable: TSPACEFAC changed. :Count = 15
Command: *Cancel*
Command: *Cancel*
Command: <Switching to: Layout1>
System variable: TILEMODE changed. :Count = 16
System variable: REGENMODE changed. :Count = 17
System variable: REGENMODE changed. :Count = 18
Regenerating layout.
System variable: PLIMMIN changed. :Count = 19
System variable: PLIMMAX changed. :Count = 20
System variable: PLIMMIN changed. :Count = 21
System variable: PLIMMAX changed. :Count = 22
System variable: PLIMMIN changed. :Count = 23
System variable: PLIMMAX changed. :Count = 24
Regenerating layout.
Regenerating model - caching viewports.
Command: *Cancel*
Command: *Cancel*
Command: <Switching to: Model>
System variable: CLAYER changed. :Count = 25
System variable: TILEMODE changed. :Count = 26
Restoring cached viewports.
System variable: UCSNAME changed. :Count = 27