Author Topic: undo question  (Read 1412 times)

0 Members and 1 Guest are viewing this topic.

CottageCGirl

  • Guest
undo question
« on: January 12, 2007, 03:07:43 PM »
I often try something on plan that dosent work, so I undo, but if I have panned, I have no way of knowing how many.  Until now I have been undo/ "10" or "20" depending on what I have been up to. (this method stinks)

Question: is there any way to "undo" all the previous "pans" to the next previous command?
I keep ending up 5 to 10 "undos" too far back....

Dinosaur

  • Guest
Re: undo question
« Reply #1 on: January 12, 2007, 03:10:12 PM »
With 2006 and 2007 there is a sysvar for this . . . prior versions, I think not.

T.Willey

  • Needs a day job
  • Posts: 5251
Re: undo question
« Reply #2 on: January 12, 2007, 03:16:32 PM »
I think you can use undo mark.  I know how to do it in code so that all the code gets grouped together with one undo.
(command "_.undo" "_group") or (command "_.undo" "_begin")
.. do all your stuff here ...
(command "_.undo" "_end")

Now everything in the middle should get undone with one undo.
Tim

I don't want to ' end-up ', I want to ' become '. - Me

Please think about donating if this post helped you.

T.Willey

  • Needs a day job
  • Posts: 5251
Re: undo question
« Reply #3 on: January 12, 2007, 03:18:32 PM »
One bad thing about the way I describe ^up there^ is that you can't undo in the middle of a group.  Thought that is an important point, so wanted to point it out.  :-)
Tim

I don't want to ' end-up ', I want to ' become '. - Me

Please think about donating if this post helped you.

Dinosaur

  • Guest
Re: undo question
« Reply #4 on: January 12, 2007, 03:22:40 PM »
The undo group by those marker points has been around at least since r10 and I have been that long trying to get it to work.  I ever heard a good explanation of how to implement that feature.

Hangman

  • Swamp Rat
  • Posts: 566
Re: undo question
« Reply #5 on: January 12, 2007, 03:23:16 PM »
This is an excellent question CCGirl.

With 2006 and 2007 there is a sysvar for this . . . prior versions, I think not.
The two variables I have found (ACAD2007) is:
Quote
 UNDOCTL

Stores a bitcode indicating the state of the Auto and Control options of the UNDO command. It's the sum of the following values:

0   UNDO is turned off
1   UNDO is turned on
2   Only one command can be undone
4   Auto is turned off
8   A group is currently active

Quote
UNDOMARKS

Stores the number of marks placed in the UNDO control stream by the Mark option. The Mark and Back options are not available if a group is currently active.

Are there others ??

How would one use these to control any given command to know how far to undo ??  You can't just add the (command ".undo" "begin") & (command ".undo" "end") to each command you perform can you ??
Hangman  8)

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Drafting Board, Mechanical Arm, KOH-I-NOOR 0.7mm
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

CottageCGirl

  • Guest
Re: undo question
« Reply #6 on: January 12, 2007, 03:47:58 PM »
Tim, thanks, I will have to try that when I am not under deadline. Unfort. I am on 2005, but might get Architectural Desktop soon, that might have it...?

Dinosaur

  • Guest
Re: undo question
« Reply #7 on: January 12, 2007, 03:53:27 PM »
I think all 2006 and 2007 products have that option.

T.Willey

  • Needs a day job
  • Posts: 5251
Re: undo question
« Reply #8 on: January 12, 2007, 04:14:08 PM »
What might work for you then is the 'mark' option of the 'undo' command.  You will only be able to undo up to the mark.  So if you start a mark, then do 20 comamnds, then you want to undo all of them back to the mark, you can type 'undo' '50' and it will take you back to the mark.  Maybe a quote from the command will explain what I'm trying to better.
Quote
Command: undo
Current settings: Auto = On, Control = All, Combine = Yes
Enter the number of operations to undo or [Auto/Control/BEgin/End/Mark/Back]
<1>: mark

Command: l LINE Specify first point:
Specify next point or [Undo]:
Specify next point or [Undo]:
Specify next point or [Close/Undo]:
Specify next point or [Close/Undo]:

Command:
LINE Specify first point:
Specify next point or [Undo]:
Specify next point or [Undo]:
Specify next point or [Close/Undo]:
Specify next point or [Close/Undo]:

Command: undo
Current settings: Auto = On, Control = All, Combine = Yes
Enter the number of operations to undo or [Auto/Control/BEgin/End/Mark/Back]
<1>: 50
menu item GROUP LINE
Mark encountered
Tim

I don't want to ' end-up ', I want to ' become '. - Me

Please think about donating if this post helped you.