Message 1 of 4

Not applicable
06-21-2018
12:08 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I need a quick guide on how to make an IF-function for my OSNAPZ command, though I'm not that used to writing scripts for AutoCAD
I'm switching between OSNAPZ=0 and OSNAPZ=1 so often that I'd like it so that I only use one quick command instead of the double command each time. Basically I want this function:
defun c:o
if OSNAPZ=1
OSNAPZ=0
else
OSNAPZ=1
So I can basically switch between OSNAPZ=1 and OSNAPZ=0 with just a simple "O"+Enter command.
Solved! Go to Solution.