Two points,
getvar will give you information about the requested System-Variable.
For example, try changing the settings for osnap, then enter at the console (getvar 'osmode).
Since fuzz ist just a simple symbol, which points to the value of a variable named fuzz, "getvar fuzz" will always give an error.
BTW: if fuzz would be a existing system-variabe, you would have to quote fuzz or sett it within " "
a) (getvar 'fuzz)
b) (getvar "fuzz")
And second, fuzz holds a "floating" value , such as 0.123
Using floating,or integer, values within a string requires always a conversion, otherwise it will throw an error.
Change
(strcat
"All points/objects at zero \n[within "
(getvar fuzz)
" tolerance]"
)
to
(strcat
"All points/objects at zero \n[within "
(rtos fuzz 2)
" tolerance]"
)
Please read lisp documentation for the use fo itao and rtos functions.
Note that your code requires the setting for fuzz, leaving it blank will also cause an error.
regards
Wolfgang