Code Red => AutoLISP (Vanilla / Visual) => Topic started by: asami486 on January 21, 2017, 12:25:58 AM
Title: I'd like to change the default value of this lisp.
Post by: asami486 on January 21, 2017, 12:25:58 AM
I'd like to change this lisp. (Thank you VVA. eco 1.1) Its default value is "No" (when I just push the SPACE KEY). But I wanna change the value to "Yes" (then it'll remove the objects except a boundary created by the lisp)
Title: Re: I'd like to change the default value of this lisp.
Post by: kdub_nz on January 21, 2017, 01:27:34 AM
Try something like this :
Firstly, you need to understand that hitting ENTER or SPACEBAR on a getkword does not return any of the options ... it actually returns NIL
(princ"\nIt was not possible to construct a contour")
);_ end of if
Title: Re: I'd like to change the default value of this lisp.
Post by: Grrr1337 on January 21, 2017, 03:47:10 PM
Check Lee Mac's tutorial about prompting with default option (http://lee-mac.com/promptwithdefault.html). This is always a huge help when using getkword.
Title: Re: I'd like to change the default value of this lisp.
Post by: JohnK on January 23, 2017, 09:03:02 AM
Check out my version of the "RRB Default Method" (`my version' is just a very small improvement I did while standing on RRB's shoulders).