Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Osnap system variable

1 REPLY 1
Reply
Message 1 of 2
Anonymous
226 Views, 1 Reply

Osnap system variable

Hello--I want to be able to toggle osnaps (F3) from the command line (inside
a toolbar button macro, actually). What is the getvar that controls this?
Thanks!

Mike Mattson
1 REPLY 1
Message 2 of 2
Anonymous
in reply to: Anonymous

Mike,

Use this:
(setvar "OSMODE" (boole 6 (getvar "OSMODE") 16384))

Alex

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost