Message 1 of 4
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello
whats the difference betwen "code1" and "code2"? Why if i put "(setvar "osmode" 32)" inside the loop there will be some errors when i press Enter while program will be asking me for an Insertion point?
;code1 (defun c:testprog() (while (setvar "osmode" 32) (setq ip (getpoint "\nInsertion Point : ")) ;when i press enter the program will not quit (setvar "osmode" 0) (command "Linia" ip '(0 0 0) "") ) )
;code2 (defun c:testprog() (setvar "osmode" 32) (while (setq ip (getpoint "\nInsertion Point : ")) ;now when i press enter, the program will quit properly (setvar "osmode" 0) (command "Linia" ip '(0 0 0) "") (setvar "osmode" 32) ) )
Solved! Go to Solution.