Author Topic: Using UNDO with VBA  (Read 3009 times)

0 Members and 1 Guest are viewing this topic.

iliekater

  • Guest
Using UNDO with VBA
« on: April 05, 2009, 06:35:46 AM »
Is there a way to use the UNDO command through VBA ? Well , at the end if there is no other way , I can still send the Lisp version to the command line and do my job , but I would like to do it with VBA .

Bob Wahr

  • Guest
Re: Using UNDO with VBA
« Reply #1 on: April 05, 2009, 10:13:08 AM »
Don't have it available to chech ATM.  Worst case you can use sendcommand.

Dnereb

  • Guest
Re: Using UNDO with VBA
« Reply #2 on: April 07, 2009, 04:31:25 PM »
Worst case... is only case.
Unless you did something in lisp or VBA you can retrieve, the sendcommand would be the only option.
If not you could log all Lisp or VBA executions. and reverse them by reading your log file.

Note: this would be a good way to procede all vba/vb.net executions anyways.

Glenn R

  • Guest
Re: Using UNDO with VBA
« Reply #3 on: April 08, 2009, 04:38:41 PM »
You can set undo marks though:

ThisDrawing.StartUndoMark
ThisDrawing.EndUndoMark

iliekater

  • Guest
Re: Using UNDO with VBA
« Reply #4 on: May 03, 2009, 04:34:57 AM »
OK , thank you all for your replies .