TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: Andrea on July 16, 2015, 11:04:42 AM

Title: Get Last Command
Post by: Andrea on July 16, 2015, 11:04:42 AM
Hi guys,..

I'm having some issue with diffrent AutoCAD language and reactor..
so by getting last command...example  LTSCALE in AutoCAD French, return me SETVAR instead LTSCALE

so I'm trying to fix that by getting the last command input...
I know that is a variable who get that,...beacause I've seen it....but I've a blank !  :roll:

if anyone can help me refresh my little poor memory...
it will be appreciated.

Or,..if you have any other suggestion,...I'll take it.

thank you.
Title: Re: Get Last Command
Post by: ChrisCarlson on July 16, 2015, 11:32:21 AM
(getvar "LASTPROMPT")
Title: Re: Get Last Command
Post by: Andrea on July 16, 2015, 11:51:23 AM
Thank you Chris,

LASTPROMPT can do the trick ...by changing :vlr-commandEnded to  :vlr-commandWillStart Otherwise it return me "Commande:"

However, I did something similar by getting the required variable setting with the :vlr-commandWillStart
and then, make a comparaison at the end with :vlr-commandEnded with some condition.

But I think I'll take your idea. :)

thank you.