My Photo

May 2009

Sun Mon Tue Wed Thu Fri Sat
          1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31            

BLOGMap


« Chaining Tip from Ellen | Main | Drawing Log part 2 »

July 11, 2005

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))

Mozscreenshot20_3    Mozscreenshot19_1

TrackBack

TrackBack URL for this entry:
http://www.typepad.com/services/trackback/6a00d8345ae08669e200d8344dd11f53ef

Listed below are links to weblogs that reference CUI Macro tip from Barry Ralphs:

Comments

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

Great idea. Thanks.

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been saved. Comments are moderated and will not appear until approved by the author. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.

Working...

Post a comment

Comments are moderated, and will not appear until the author has approved them.