Message 1 of 5

Not applicable
12-03-2015
02:10 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm trying to modify a lisp program I have to make it turn off my osnap (F3), then finish the move command, then turn back on my osnap (F3)
The section of code is this
(setvar 'osmode 16384)
(command "move" "P" "")
(setvar 'osmode 641)
What this section of code does is keep the osnap on.
If I remove the line (setvar 'osmode 641) then this section of code will turn off my osnap and finish out the move command, but then I have to reset my osnap settings again .
I just want this section of code to toggle off my osnap, finish out the move command, then toggle back on my osnap.
What should the code look like to do this?
Thanks
Solved! Go to Solution.