CUI Macro tip from Barry Ralphs
Below is a tip from a fellow "Block head" Barry Ralphs on accessing the OSNAPHATCH system variable while inside a command.
Ever want to toggle the "Snap to Hatch" (OSNAPHATCH) variable in the middle of a command, so you don't have to exit it and go to your Options, Drafting tab....
NAME:
$(if,$(and,$(getvar,osnaphatch),1),!.)Snap to Hatch
MACRO:
(if (= 1 (getvar "OSNAPHATCH")) (setvar "OSNAPHATCH" 0) (setvar "OSNAPHATCH" 1))





Hi Mark
I see you get checked current Osnap settings in this Cursor Menu (EndPoint, MidPoint, Intersection and Extension)
How can do it using a Diesel Expression?
Thanks
Posted by: Ignacio Arrue | July 18, 2005 at 01:18 AM
Great idea. Thanks.
Posted by: dkurtz | July 19, 2005 at 03:41 PM