TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: cmwade77 on December 09, 2014, 01:51:08 PM

Title: Last Point
Post by: cmwade77 on December 09, 2014, 01:51:08 PM
Ok, I have some code that allows me to continue picking points for the pline command. I now need to know the last point picked from the command.
Code: [Select]
(command "._pline" "_S" "_N" "_M" Pt1 PT2)
(while (= 1 (logand (getvar 'CMDACTIVE)))
     (princ "\rSpecify next point [Arc/Undo] <Enter or C to Finish>: ")
     (command pause)
)
I am ok with changing the code around, but it is important that the user can pick any number of points before pressing enter and that the command show exactly what will be drawn (please note the actual command isn't always pline, so it may not always be straight lines or arcs).

Any help with this is much appreciated.
Title: Re: Last Point
Post by: ronjonp on December 09, 2014, 01:53:01 PM
(getvar 'lastpoint) ?
Title: Re: Last Point
Post by: cmwade77 on December 09, 2014, 01:53:49 PM
(getvar 'lastpoint) ?
Yes, I just figured that out....don't I feel silly now....LOL
Title: Re: Last Point
Post by: ronjonp on December 09, 2014, 02:08:36 PM
(getvar 'lastpoint) ?
Yes, I just figured that out....don't I feel silly now....LOL
:)