Zoom in and out not using mousewheel

shabik
Contributor
Contributor

Zoom in and out not using mousewheel

shabik
Contributor
Contributor

Hi. I got an injury making it a bit painful after extended times in using mousewheel to zoom in and out. Is there a way to program it to zoom out xxx and then another one to zoom it in? Zooming in seems okay with "ZOOM" command and I can select with the mouse what to zoom in on while zoom out not so much

0 Likes
Reply
445 Views
5 Replies
Replies (5)

Valentin-WSP
Mentor
Mentor

@shabik ,

 

One option is to use the Zoom Real Time (hold down drag up=zoom in; hold down drag down=zoom out).

 

 



Please select the "Accept as Solution" button if my post solves your issue or answers your question.


Emilio Valentin
0 Likes

Kent1Cooper
Consultant
Consultant

If you want something like defined commands to Zoom in and out by some defined percentage, try something like:

 

(defun ZIn () (command "_.zoom" "1.1x"))
(defun ZOut () (command "_.zoom" "0.9x"))

 

Change the 1.1 and 0.9 to factors you prefer.   Use values that are inverse of each other if you want them to reverse each other's effect exactly, as mouse-wheel-roll clicks do.

You can put those command names in Tool Palette buttons if you don't want to type them in.

Kent Cooper, AIA
0 Likes

shabik
Contributor
Contributor

Thanks, I tried that version and it is a little bit milder than scrolling mouse wheel but I was hoping to get an option that is mainly keyboard based without being too slow.

 

Perhaps zoom extent for zooing out and then using the zoom marque for zooming in so far is the easiest to the wrist. I am a little bit surprised that there is no way to store views or create a second model space in the same file. Ie, these will show the same drawing but one window could be zoomed in on gf while the other one is zoomed in on first floor. Of course I could create two files and do something similar but then I may have to xref and syncronise layers which is a drawback.

0 Likes

shabik
Contributor
Contributor

This sounds very promising, thanks a lot! I tried this however and it did not do anything. Is it just specific to full version of autocad? I am running the LT version. Perhaps I did something else wrong?

 

EDIT: I tried only using the latter part and that worked! Thanks, now I just have to learn how to use tool palettes!

0 Likes

tramber
Advisor
Advisor

Try -TOOLBAR then Zoom and Show 😉

The + and - are "macroed" like any of them in fact.

Behind the button there is a code that you can learn to enter directly :

'z (don't forget the ' when you are running a command, no need when no command is active, it is named transparency because zoom is typical, it can be run when a command is active)

2x

 

again :

 

'z

2x

 

or .2x or whatever !

very very easy and simple with the keyboard.

Possibly in a macro in your new toolpalette.

😎

 

.2 stands for 0.2

x is a multiplication of the actual zoom

If you don't put a "x", it works as well but as an absolute reference.

xp when inside a paperspace viewport gives a relative/absolute to the paper 🤔😀

 

0 Likes