Does anyone know of a way to perform the equivalent of the Undo Mark & Back options in AutoLISP via (vla-...) functions, or in any way other than by running the command outright and supplying the options? I've looked through several listings of (vla-...) functions, and they all include (vla-startundomark) and (vla-endundomark) functions, which are equivalent to Undo BEgin & End, but I don't see anything equivalent to the Mark & Back options. A Search here didn't turn anything up.
I'm working on a routine that uses both BEgin/End [for the overall routine] and Mark/Back [for one-item-at-a-time undoing within the routine] options in Undo. If the Mark/Back options can be done only via Undo commands, then I'll want to save and turn off and reset command echoing. But that's the only command operation the routine needs, so if there's another way to do Mark/Back, similar to the way the BEgin/End options can be handled, it will eliminate the need for dealing with CMDECHO, and a variable to do that with. [And it would probably be faster, though in this case not noticeably.]
Hi all
There are two functions you can call
(Setq thisdrawing (vla-get-activedocument (vlax-get-acad-object))) (vla-startundomark thisdrawing) (vla-endundomark thisdrawing)
I hope i could help...
@cristian.leon.gonzalez wrote:
....
There are two functions you can call
....
Thanks for the suggestion, but I already use those all the time. They are equivalent to the BEgin and End options in UNDO, but I was looking for something equivalent to the Mark and Back options, which are different. Read Post 1 again, and Help about UNDO to understand the differences.
There are plenty of vlr-undo methods (reactor thingies), but I have never used them.
I see no problem using (command ...).
John F. Uhden