Author Topic: Get Last Command  (Read 1338 times)

0 Members and 1 Guest are viewing this topic.

Andrea

  • Water Moccasin
  • Posts: 2372
Get Last Command
« 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.
Keep smile...

ChrisCarlson

  • Guest
Re: Get Last Command
« Reply #1 on: July 16, 2015, 11:32:21 AM »
(getvar "LASTPROMPT")

Andrea

  • Water Moccasin
  • Posts: 2372
Re: Get Last Command
« Reply #2 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.

Keep smile...