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.

Zoom mouse wheel problem

Started by Jd, July 15, 2023, 03:31:32 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Jd

Hi All, when I zoom in or out, image replicates.
Just "upgraded" to 2022 version. Windows 11

Oy! Single triangle turns into many when using mouse wheel.
Thanks, JD

Rob S

Yup, you must have the latest "bug fix and add some more" version.

You can clean up the result by a slight pan using the icon on the second from top left toolbar, or a macro which I will post shortly
User since forever

Jd

Thanks! Yeah the 'Fit to window' doubles the image too. Only switching from 2d to 3d back to 2d fixes it. or scroll bar off the view and then return. What  a POS....

New computer so I have an older v21 but I can't get it authorized over the weekend, so I bought the latest upgrade for 90 bucks and I STILL CAN"T WORK. lol
Thanks, JD

falekpetr

The fastest and most convenient way to solve the problem is to use the Pan command by pressing the middle button (wheel) of the mouse, moving a little and pressing the wheel repeatedly. Faster than using an icon. I recommend. :-)

bdeck

#4
Quote from: falekpetr on July 18, 2023, 12:05:31 PM
The fastest and most convenient way to solve the problem is to use the Pan command by pressing the middle button (wheel) of the mouse, moving a little and pressing the wheel repeatedly. Faster than using an icon. I recommend. :-)

Hi falekpetr,

Thanks for the heads up. I'll add one suggestion that works for me when "off-screen bit-map" is enabled :

1) After using  Ctrl-mouse-wheel to zoom, take your fingers off the wheel and the Ctrl key,
2) Then click the mouse wheel once.
3) With your finger off of the mouse wheel, move the mouse to pan.
4) Then click the Center/Wheel Button once to end the pan.

Using Esc or Enter to end the pan, as I had previously suggested, may leave a corrupted display if "off-screen bit-map" is enabled,

Best Regards,
bd

PS: Here's a way to do mouse-wheel zooms and pans in a single operation without messing up the screen:

1) Before doing a Fit-to-Window or Mouse-Wheel Zoom, click the Center/Wheel Button once. This puts DC in "Pan Mode".
2) While in "Pan Mode" you can zoom cleanly by using Cntl-Mouse Wheel, or by hitting an (unshifted) Fit-to-Window shortcut key (W).
3) When done panning and zooming, click the Center/Wheel Button to exit "Pan Mode".

Before using the Fit-to-Window keyboard shortcut in this method, you'll need to modify its shortcut (in Q/keyboard) from "Ctrl-W" to just "W." Be sure to first modify the existing "W" shortcut (probably "Sweep") to eliminate any conflict.

Macro method
I prefer to do all panning and zooming with a macro, such as the ones RobS has posted. Below is the  Aireal Zoom macro  I use from the command line (ZZ.d3m).  For further zooming, I use Rob's  "ZoomWindow" macro, which I label "Z.d3m", so it's easy to use from the command line. 

As the current zoom bug should be short-lived, I chose not to modify my keyboard definition file.


'''    zz.d3m      Aireal Zoom 2   Bdeck/Rob S   23July2023
' This is my old Aireal Zoom macro modified to clean up the screen mess
'   caused by panning and zooming after the DC31 patch of July 10, 2023.
' Thanks to RobS for advising the "Redraw" modification as a temporary fix
'   until IMSI issues a new patch.

' After FitToWindow, either set 2 points to define a zoom window,
'   or hit "Esc" or "Enter" to exit the macro in the aireal view.

>FitToWindow
{
}
>Redraw
{
}

x0=(sys(601)-sys(600))   ' window width in drawing units
y0=(sys(603)-sys(602))   ' window height in drawing units

>ZoomWindow  'use Esc
{
}

x1=(sys(601)-sys(600))           ' window width in drawing units
y1=(sys(603)-sys(602))           ' window height in drawing units
if (x0=x1) and (y0=y1) then end  ' don't redraw if no change in zoom

>Redraw
{
}





Rob S

And for those who might prefer the icon or shortcut key solution, I have posted it here

https://forum.designcad.com/index.php?topic=7842.msg55136#msg55136

After assigning these simple macros to shortcut keys, I find I can work as normal
User since forever

Rob S

I just noticed BD added a some more details and another new trick to his post above, however this did not show up as "new post" when I logged in.   

It appears the thread is flagged only if it gets an actual new post, and not if an existing post is edited.  So if you want your edits to be noticed, best to put new info in a new posting.
User since forever

bdeck

#7
Hi Rob,

It now appears that the easiest way to avoid the 10July2023 patch bug is to simply disable "off-screen bit-map." in the view menu.

I discovered this when I noticed a problem with using  "Esc" or "Enter" to end a Pan operation, as I had previously suggested.

If your "View" settings are set for "Enable off-screen bitmap", then exiting with "Esc" or "Enter" appears to work OK,

However, an immediate redraw will instantly shift the view back to its correct pan location.

Mouse-wheel zoom performed while in "pan mode" and ended with "Esc" or "Enter" results in a correct zoom, but any  pan that occurred while in "pan mode"  will remain corrupted until a redraw.

Takeaway for off-screen bitmap users:  "Pan Mode", when initiated by a Center/Wheel Click, must be ended by a Center/Wheel Click, unless followed by an immediate redraw.

I have corrected my prior posts on this subject. Please advise if you find any pan/zoom problems with off-screen bitmap disabled.

Here are links to other solutions to this bug.
https://forum.designcad.com/index.php?topic=7867.msg55142#msg55142

https://forum.designcad.com/index.php?topic=7842.msg55136#msg55136

Rob S

A quick test confirms this, and also that the  otherwise broken "Regenerate" appears to work when "offscreen bitmap" is turned off.

So, correction more testing etc, but it appears what is actually broken is the "use offscreen bitmap" option.

Many thanks for finding this solution! 
User since forever