
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi everyone,
I know this question has already been asked, but I'm totally unable to understand how to adapt answers to my problem :s
In my code, I'm using a getint to scale objects that will be drawn at the end.
I'd like to get the UserI1 variable as default choice (an integer), to simplify the use of my lisp routine if I have to use it again in the same drawing later.
For now, it works, the default choice is UserI1 as expected.
When I press Enter, it returns nil and then exit the routine. I've been searching on the web, I've read some tutorials (Lee Mac for example), but I don't understand what to do to allow pressing Enter, or right-clic (options are OK with that).
If someone has the solution for a dummie-lisp-developper, I'll be glad to learn from him/her 🙂
Thanks for reading !
(setvar "UserI1"
(setq ech
(getint
(strcat "\nQuelle sera l'échelle d'impression ? 100 pour 1:100 < "(rtos (getvar "UserI1") 2 0)" >: "))
)
)
Solved! Go to Solution.