Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

the zoom function is included in the undo list, GRRR!

Status
Not open for further replies.

maneadrian76

Technical User
Mar 26, 2002
9
RO
Ok we use autocad 2002 on win 2k machines with SP 3 and Microsoft intelimouse Explores Optical USB(long name for a mouse) every time we whant to use the undo function the zoom made with the wheel of the mouse is in the undo list and is very annoyng
Please Help !!
It is windows, is autocad, is the mouse? I whant to get rid of the zoom count in the UNDO list .
Thanks
 
It's AutoCAD. Any view change (which include zoom and pan commands) are included in the undo list - and that includes wheel-mouse spins.

There are a few commands that undo specific recent commands:
Oops - This command restores the most recently erased object(s).
Layer Previous - This command allows you to undo any recent layer changes that you've done.

As for zooming and panning with the mouse or wheel, as far as I know, you can't exclude them from the undo list - unless anyone else knows any different (if anyone does, let us know as it would be useful).

This may be long-winded and actually take more time than suffering through the full undo list but the only other thing I can think of is to edit the textscreen and delete any zoom/pan etc command text from it. This might work when you go to undo but as I said, it would probably take longer to do this than just put up with it.

Anyway, hope this helps.. Good luck!!

Renegade..
 
have you tried writing some code to store the current view settings.
 
if you store your current view settings, when an undo is performed you could then restore the view you have stored.
 
Please read more carefully !!
what i try to do is to to have an undo list without the zoom or pan in it. I don't care what zoom or pan has been done during editing. I just whant wenhen i use the undo function the undo and pan in the undo list to be ignored.

I'm stiil in need of help :((
 
I know I'm rather late to this discussion, but DJRenegade had it right. It's AutoCAD.
AutoCAD's UNDO function steps you back through EVERYTHING you've done. And that includes Zooming. So, bottom line is, you're SOL.

 
Hi,
Is this part of a program or are you just using UNDO and want it to ignore the view changes that you make?
 
i want to use autocad and when i start to give the undo comand the pan and zoom function to be ignored.
let ssay i draw 2 square and a circle i zoom to square 1 an delete 1 side then zoom out and delete the second square then zooom in and pan to the circle and resize it. good then i zoom out and i decide to undo the last 2 actions.
what happens zoom in resize back. i don't want that i want to undo the rezize action and the delete of the second square. and i don't whant to use the undo list and select manuly the actions.
i hope this is a bit more clear now

i hope someone helps me out :)
 
I can not think of a clean way that ACAD will let you do what you want, but I wrote this little LISP that mocks what you want. It just restores the view that you start with when you start an undo. Just load it, and type in UNDO_SAVEVIEW. Hit ENTER to undo another step. Good luck.

(defun C:UNDO_SAVEVIEW()
(setq V_CTR (getvar "VIEWCTR")
V_HT (getvar "VIEWSIZE")
SCR_SZ (getvar "SCREENSIZE")
V_WD (/ (* (car SCR_SZ) V_HT) (cadr SCR_SZ))
YMAX (+ (cadr V_CTR) (/ V_HT 2.0))
YMIN (- (cadr V_CTR) (/ V_HT 2.0))
XMAX (+ (car V_CTR) (/ V_WD 2.0))
XMIN (- (car V_CTR) (/ V_WD 2.0))
VMAX (list XMAX YMAX)
VMIN (list XMIN YMIN)
)
(command "UNDO" "2")

(command "ZOOM" "WINDOW" VMIN VMAX)
(princ)
) ;defun
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top