(getpoint) wont set new coordi
(setq plst (cons (getpoint "\nPick first point") plts )) (while (setq plst (cons(getpoint(getvar "LASTPOINT") "\nPick next point") plst )) ) Shay,Don't really understand your question. I think you are implying about the rubber band effect of getpoint function.
try this:
(setq plst (cons (getpoint "\nPick first point") plst )) (while plst (setq plst (cons(getpoint(car plst) "\nPick next point") plst )) ;(entmakex (list (cons 0 "LINE") (cons 10 (car plst)) (cons 11 (cadr plst)))))
thanks
didnt think about this
why (getpoint) clicks are not saved in lastpoint?
Bump, sorry don't know the answer.
On your code that lastpoint was saved on your plst list but just didn't show the visual effect that you want to achieve. Bdw have u notice the codestorenil recevied by getpoint? This is short and sweet may be usefull, lots of get pline pts code then just erase last but points still exist.
; create pline by picking points press enter when finished(command "_pline") (while (= (getvar "cmdactive") 1 ) (command pause)) Samifox, from what it seems, that system variable is set only by native commands, not AutoLISP.
thanks Bigal, i didnt know about that trick
yap....relay on lisp...not autocad:glare:
thanks I stumbled on the code can not remember where would acknowledge author.
页:
[1]