disable F3 during command

RYANSTM

Usenet Archive
Joined
Jul 22, 2003
Messages
2
Reaction score
0
I have a lisp for batt insulation, but when you run the lisp it turns off all Osnaps. I just want to add a command that would be like hitting the F3 key and in the end of the lisp it would turn the F3 back on. Any help is very appreciated.

Thanks in advance

Ryan
 
Add a line as one of the first lines of the lisp file. (setq oosnp (getvar "osmode")) and as one of the last lines of the file...(setvar "osmode" oosnp)

Bill
 
<<< That solution sucks... here's why: >>>

Martin,
I answered the question. The question was not about error trapping or I would've addressed that. I agree that you should include variable re-setting in your error trap(s). I was only sticking to the original question. The solution I gave was, how to reset the original osnap settings at the conclusion of the program. If he would've asked "what if someone cancels in the middle of the program?" I would've gave him the error trap advice.

Bill
 
hmmm... so every answer we post must come with complete with all the different possibilities covered. That'll certainly limit the number of posts.
 
How does that error trapping thing work. I have a couple lisp routines that that would come in handy. Have been trying to look through the help files, but they are not helping to much. Any help you guys can give would be great.

Thanks
Matt V.
 

Latest threads

Back
Top