Assign
(setvar 'gridmode (setvar 'osnapz (boole 6 (getvar 'osnapz) 1)))
to the button "Ignore entity snap elevation
For visual feedback '2D' is active
(Credits to Roy Klein Gebbinck)