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 DesignCAD should have zoomed (a decade ago)

Started by prl, July 01, 2007, 08:52:40 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

prl

Bob P turned me onto the AutoHotKey program and one thing leads to another, exploring possibilities etc. . . .

Anyway, here is how DesignCAD should zoom with the mouse wheel in my view.  It's how AutoCAD and TurboCAD do it.  This is just a demo and the zooming isn't transparent (you can't use this if you have a command already active) but you can use it to navigate your drawings/models.

To try it out for yourself you need to do three things.

Step 1.  Take the below basiccad code and save the file as AltF9.d3m.  In DesignCAD, assign the hotkey Alt F9 to this code.

'Program: AltF9.d3m

getxy x1 y1 z1

>ZoomIn
  {
<pointxyz [x1, y1, z1]
  } 

>MoveCursor
  {
  <pointxyz [x1, y1, z1]
  }

end


Step 2.  Take the below basiccad code and save the file as ShiftF9.d3m.  In DesignCAD, assign the hotkey Shift F9 to this code.
'Program :ShiftF9.d3m

getxy x1 y1 z1

>ZoomOut
  {
<pointxyz [x1, y1, z1]
  }

>MoveCursor
  {
  <pointxyz [x1, y1, z1]
  }

end


Step 3.  Download this compiled AutoHotKey program and double click it to start it.

DcMouseWheelZoom.exe

If you do all this what you will get is that scrolling the mouse wheel will zoom you in and out AND it centers on the location of the cursor (something that DesignCAD doesn't do now even if you use the Ctrl wheel approach).

Edit:  I forgot to mention that the rate of zooming in or out is controlled by the DesignCAD >options>options>general tab "zoom increment" field. I have mine pretty high at .9.  Fast in and out.

bdeck

Hey prl,

Slickness.

In the words of Raymond Loewy, "Never let well enough alone."

BD


Bob P

Works well!  This could be the start of some serious customizing...

PRL,

Could you post your AutoHotKey macro code?

prl

Quote from: Bob P on July 01, 2007, 10:57:51 AM
Could you post your AutoHotKey macro code?

Here you go. Very few lines of code.

; AutoHotKey DesignCAD mousewheel demo script
; for DesignCAD 15, 16 and 17

MsgBox 0,,DesignCAD mousewheel demo,4

;This is for DesignCAD 15
#IfWinActive ahk_class DesignCAD3DMAX15
    WheelUp::  !F9
    WheelDown:: +F9
#IfWinActive

;This is for DesignCAD 16 and 17
#IfWinActive ahk_class DesignCAD3DMAX16
    WheelUp::  !F9
    WheelDown:: +F9
#IfWinActive


An additional note, in the AltF9 and ShiftF9 macros above , I've switched the order of the >movecursor command.  Putting it after the >zoomin or >zoomout seems to work better for me, maybe my imagination.

Bob P

Thanks,

I'd rather add code to my current AHK file than run an additional program resident.

sitting bull

Well done !

I always liked the way you could use youre wheel-mouse in Autocad. I hope Designcad 18 will use this.

Another useful function with the wheel-mouse is by double-clicking the wheel to "fit to window".
And to click the wheel and hold it down to pan your drawing untill you release it.

That's indead how DesignCAD should use the mouse wheel !

Thanks
SB

herbertjackson

not like auto cad wheel to zoom. But try the Aerial View in the view menu.
this puts a little box in the right hand corner of the screen that shows the current drawing. move the cursur any where in this box click the mouse on the top bar as many times as you wish to zoom in or out.