jeremyearle5 Posted December 15, 2011 Share Posted December 15, 2011 I want to make the insert option happen by just pressing enter in the following code: (defun c:mak521 () (if (/= (tblsearch "block" "521") nil) (progn (beep) (initget 1 "Yes No INsert") (prompt "\n521 has already been created.") (setq x (getkword "\nInsert 521 at 0,0 or redefine it? [Yes/No] <INsert>: ")) (cond ((= x "Yes") (mak521)) ((= x "No") (exit)) ((= x "INsert") (ins521)) How can I do this? Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted December 15, 2011 Share Posted December 15, 2011 See my tutorial here: http://lee-mac.com/promptwithdefault.html Quote Link to comment Share on other sites More sharing options...
jeremyearle5 Posted December 15, 2011 Author Share Posted December 15, 2011 Thanks. I think I can figure it out from your tutorial. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.