DesignCAD 3D Max 2027 box
Now available

DesignCAD 2027

Hatches that follow their boundaries, an on-screen dial to turn your model, and a way to find any command by name, in a clean Windows 11 look.

How to focus-zoom using the mouse wheel.

Started by Lar, April 27, 2012, 08:40:47 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Lar

Dcad allows you to zoom in/out while holding the ctrl key and rolling the mouse wheel. If the zoom command is running you can roll to zoom without holding ctrl.

Problem with this is you zoom focused on the center of the screen, which is hardly ever where you want to zoom on.

To set a zoom focus then roll-zoom here's what to do:

Hit "z" then "-" or "+" (doesn't matter if you want to zoom in or out, just hit either - or +). This issues the 'zoom window' command with 'zoom in' or 'zoom out' just before it. Click the area of focus, which would zoom in or out once while centering on where you clicked. The zoom command would now become active so you can just scroll the mouse wheel for further zooming. To refine your zoom hit + or - again and clicking on the new focus point. The screen would zoom in/out then return to the zoom window command for further wheeling. When done press esc to end the zoom command or issue another drawing command. Or you could actually click 2 points to define a window to zoom in on.

Lar

Rob S

User since forever

Dr PR

Lar,

Thanks.

However, when I try this and use the mouse wheel to zoom in, then out, then back in, the zoom center sometimes jumps around the drawing. Still, it is a much more effective way to zoom than the current oddball way of using the "+" and "-" keys followed by a left click.

Phil
DesignCAD user since 1987

minstrel

In addition, this 'power' zoom technique can be applied while within 3D "set view.." modes. 

minstrel

Lar

Rob, I actually didn't think of it... it became apparent to me while doing tests for another post. <<when I find that threat I'll add the link>>

However, the technique of reverse hitting command keys (or buttons) to run a series of commands seems to be unique to me so I'll take credit for the process that led to the discovery    :D 8).

Doc, unless you snap to something existing (point, mid-point, etc) there's no telling where exactly your center is. Also, I've discovered that even a snapped focus goes off slightly when roll-zoomed way in. Still, I can roll in and out continuously at high speeds and it remains consistent.

minstrel, ...'power-zoom'. Cool. Wish I had thought of that.

**********
In response to my starting post: I said that it doesn't matter if you hit - or +, which is technically correct. However, I've found that if you intend to zoom in and you hit the the minus key and it initially zooms back it sort'a feels counter intuitive. It feels better when you hit the appropriate key.

Lar




prl

#5
Lar, nice tip.  Didn't think about the zoom window command issued first.

As you know I tend to tinker.  I've used a variation of this approach to emulate how AutoCAD zooms or for that matter TurboCAD.  Zoom commands are transparent meaning they work in the middle of doing anything or any other command. (By the way, not sure why the programmers can't take 15 minutes and fix the way DesignCAD zooms).

My approach uses AutoHotkey to intercept the mouse wheel movements.  A mouse wheel up sends DesignCAD the "+" and the Insert key which as you know will zoom you in on the last position of the cursor. Then I have AutoHotKey move the pointer to the center of the screen since that is the zoom focus and since it will most likely be followed by a whole series of mouse wheel ups or downs.

You could do something similar with your approach, move the cursor to your desired zoom "focus", hit the special Lar "z" key combination and send the "z" ,"+" and "insert" keystrokes to DesignCAD all in one keystroke which should put you in the native DesignCAD scrolling zooming in/out mode.  Of course in that mode you eventually have to hit cancel to stop the zooming mode.

Are you familiar with AutoHotKey?  A gem of a program. Useful not just in DesignCAD but all programs in general.



Lar

Never tried AutoHotKey, prl. I'll look it up. I assume you can specify that the z is issued before the + or - and the insert comes last.

Lar

bdeck

#7
prl,

Good to hear from you. Its been a while.

Heres a link to the mouse wheel zoom mod you posted a couple years ago.

http://forum.designcad.com/index.php?topic=1253.0

Years ago I mapped the zoom window command to the "w" key, so by pressing "w" then "z" I can zoom to any spot on the drawing very quickly.

But Lar's method and yours are more fun.

Best Wishes,

BD

prl

Quote from: Lar on April 29, 2012, 06:52:57 PM
I assume you can specify that the z is issued before the + or - and the insert comes last.

Sure, any series of keystrokes you want.  The code is so simple, it hurts.

; AutoHotKey DesignCAD script
; for DesignCAD 15

MsgBox 0,,DesignCAD Win Z key,4

;This is for DesignCAD
#IfWinActive ahk_class DesignCAD3DMAX15
     #space::
      SendPlay,z{+}{INS}
    Return


In this example, the #space is the "Win key and space bar" combination.  I just picked this, you can make it anything you want.  When running DC 15, the Win/Space bar then sends the keystrokes z "+" and "insert".  I've attached the code and a compiled version.  Seems to work with version 15 assuming you have that on your machine.


prl

Quote from: bdeck on April 29, 2012, 08:37:38 PM
Good to hear from you. Its been a while.
Heres a link to the mouse wheel zoom mod you posted a couple years ago.

Hi Bd, thanks for the greetings. Decided to poke my head into the DesignCAD saloon and see how many old timers are still sitting at the bar.  ;D

Thanks for the link.  A bit spooky reading something I wrote and had forgotten about.  Hate to think I'm starting to repeat myself, hate to think I'm starting to repeat myself.

prl

Pearco

prl;

Repeating yourself is not so bad. It's when you don't understand what you repeated that you may be in trouble.
Jim
User since ProDesign 1.5

Dr PR

Not being able to repeat is even worse.

Phil
DesignCAD user since 1987

MarkX

Quote from: prl on April 30, 2012, 01:08:34 AM
Quote from: Lar on April 29, 2012, 06:52:57 PM
I assume you can specify that the z is issued before the + or - and the insert comes last.

Sure, any series of keystrokes you want.  The code is so simple, it hurts.

; AutoHotKey DesignCAD script
; for DesignCAD 15

MsgBox 0,,DesignCAD Win Z key,4

;This is for DesignCAD
#IfWinActive ahk_class DesignCAD3DMAX15
     #space::
      SendPlay,z{+}{INS}
    Return


In this example, the #space is the "Win key and space bar" combination.  I just picked this, you can make it anything you want.  When running DC 15, the Win/Space bar then sends the keystrokes z "+" and "insert".  I've attached the code and a compiled version.  Seems to work with version 15 assuming you have that on your machine.

I also use AHK to make zooming more sane and to make it work with my trackball which doesn't have a scroll wheel. The way zooming works in DC is bizarre ... a hangover from DOS maybe.

V21 identifies itself as DesignCAD3DMAX16. I wonder if they were supposed to change the internal name?

Mark



DrollTroll

QuoteV21 identifies itself as DesignCAD3DMAX16. I wonder if they were supposed to change the internal name?

Oh? Where are you seeing this idenfication, exactly? It's possible we missed a string -- the RC file is huge.
25 years with DesignCAD

MarkX

Quote from: DrollTroll on May 01, 2012, 02:59:57 PM
QuoteV21 identifies itself as DesignCAD3DMAX16. I wonder if they were supposed to change the internal name?

Oh? Where are you seeing this idenfication, exactly? It's possible we missed a string -- the RC file is huge.
Hi DT,

AHK has a tool it calls "Window Spy". You need this in order to find out the name of a class (the ahk_class) in order to define actions that only occur within that class. I don't know where AHK pulls this information -- maybe a MFC class designator? You can see that the ahk_class has changed. PRL's example uses DesignCAD3DMAX15 but currently v21 identifies as DesignCAD3DMAX16.

HTH
Mark


>>>>>>>>>>( Window Title & Class )<<<<<<<<<<<
DesignCAD 3D MAX 21 - [Toy-Barn.dcd]
ahk_class DesignCAD3DMAX16