Author Topic: undo disabled...?  (Read 3619 times)

0 Members and 1 Guest are viewing this topic.

andrew_nao

  • Guest
undo disabled...?
« on: August 17, 2012, 11:15:19 AM »
does anyone know if any particular code would have side effects to disable the undo command?

out of 5 workstations i only have 1 that the user's undo command keeps becoming disabled.
we all use the same menu/lisp files too.

anyone ever experience this?

Lee Mac

  • Seagull
  • Posts: 12925
  • London, England
Re: undo disabled...?
« Reply #1 on: August 17, 2012, 12:07:19 PM »
anyone ever experience this?

I've experienced a situation in which a user cannot undo any operations because the call-back function of a Command Reactor is being evaluated on the :vlr-commandwillstart event as the Undo command is invoked, and is performing an operation which is then immediately undone by the Undo command, hence not actually undoing anything in the drawing.

Needless to say, the simple solution to the above scenario is to check the reactor data supplied to the call-back function for the Undo command and don't act on this condition.

andrew_nao

  • Guest
Re: undo disabled...?
« Reply #2 on: August 17, 2012, 04:12:03 PM »
 :? :? :? :? :? :? :? :? :? :?

Keith™

  • Villiage Idiot
  • Seagull
  • Posts: 16899
  • Superior Stupidity at its best
Re: undo disabled...?
« Reply #3 on: August 17, 2012, 04:17:07 PM »
undo becomes disabled? Do you mean that the command is not available or that when issuing the undo command, nothing happens.
Proud provider of opinion and arrogance since November 22, 2003 at 09:35:31 am
CadJockey Militia Field Marshal

Find me on https://parler.com @kblackie

Tharwat

  • Swamp Rat
  • Posts: 710
  • Hypersensitive
Re: undo disabled...?
« Reply #4 on: August 17, 2012, 06:03:39 PM »
Hi ,

Post the following function in the command line into your Autocad and restart it , and tell me back .  ;-)

Code: [Select]
(std-enable-undo)