It was even slightly more complicate than that, line 588 had to be changed to (if (or (bitcodef (getvar "autosnap")
(= (getvar "ORTHOMODE") 1)) it was (if (or (bitcodef (getvar "autosnap")
(getvar "ORTHO"))
I also had to adjust line 668 accordingly and line 671 was expanded to:
(if (not (= (getvar "ORTHOMODE") 1)
(grdraw pt1 (polar Pt1 (angle Pt1 FinalPoint) 10000) 3 1)
)
I also had to move your suggestion and modify it a bit.
I was also able to remove some additional information from my original code. I have attached what I presently have.