Zooming in & out causes grid scale to change

Drop in here to discuss whatever you want.

Moderator: andrew

Forum rules

Always indicate your operating system and QCAD version.

Attach drawing files and screenshots.

Post one question per topic.

Post Reply
StanTibbs
Junior Member
Posts: 10
Joined: Fri Sep 10, 2021 2:59 pm

Zooming in & out causes grid scale to change

Post by StanTibbs » Wed Sep 22, 2021 6:47 pm

I have set the grid to X=.0625 Y=.0625 on all 4 viewports.
When zooming in and out the grid scale changes from .0625 to 3.90625.

When I use the grid settings defaults .01, then zooming in and out the grid scaling follows a smooth10s progression.

Have I set something up wrong?
Can I not use grid spacing other then the decimal values as given?

User avatar
andrew
Site Admin
Posts: 9037
Joined: Fri Mar 30, 2007 6:07 am

Re: Zooming in & out causes grid scale to change

Post by andrew » Wed Sep 22, 2021 7:27 pm

You can set the grid to a fixed spacing if you disable grid scaling:
Edit > Application Preferences > Graphics View > Grid > Automatically scale grid / meta grid (uncheck both)

QCAD will then hide the grid when zooming out before it becomes too dense to display.

StanTibbs
Junior Member
Posts: 10
Joined: Fri Sep 10, 2021 2:59 pm

Re: Zooming in & out causes grid scale to change

Post by StanTibbs » Thu Sep 23, 2021 12:45 pm

I tried as you suggested setting grid to fixed scale. grid goes away as described.
Sorry this is not what i was looing for, I must have described the issue improperly.

my needs for the grid scaling when zoomed out is needed. I understand the grid scale should change. the issue is the scale should be consistent. multiples of the setting. as with the given values setting for .01 gives grid scaling range of 1.00000000E-02 to 1.00000000E+14. sequentially.

When i set the scaling value to .0625
grid scaling range starts at 6.2500000E-02 then changes to 3.90625000E-01. this changes all the grid reference points on the drawing because 3.90625 is not a multiple of .0625.

thank you for your support
BTW win10 64bit version, latest version for the date 092321

User avatar
andrew
Site Admin
Posts: 9037
Joined: Fri Mar 30, 2007 6:07 am

Re: Zooming in & out causes grid scale to change

Post by andrew » Thu Sep 23, 2021 1:07 pm

Are you working in Inches? If so, there might be a way:

- Make sure your drawing unit is "Inch" (Edit > Drawing Preferences > General > Drawing Unit)
- Switch the dimension format to "Architectural" or "Fractional" (Edit > Drawing Preferences > Dimension > Dimension Settings > Label Format > Linear Dimensions > Format)

The grid will then scale in factors of 2, not 10.

You might want to change the grid spacing back to "auto" to get grid points with distances:

1/256
1/128
1/64
1/32
1/16
1/8
1/4
1/2
1
2
4
12
36
72
etc.

CVH
Premier Member
Posts: 3416
Joined: Wed Sep 27, 2017 4:17 pm

Re: Zooming in & out causes grid scale to change

Post by CVH » Thu Sep 23, 2021 1:20 pm

StanTibbs wrote:
Thu Sep 23, 2021 12:45 pm
this changes all the grid reference points on the drawing because 3.90625 is not a multiple of .0625.
Confirmed for inches and mm:
The first scaling step for 0.0625 is times 6.25, successive steps are times 10.
  • Auto:
    ...
    0.0001 (x10)
    0.001 (x10)
    0.01 (x10)
    0.1 (x10)
    1 (x10)
    10 (x10)
    100 (x10)
    ... (x10)
  • 0.01:
    0.01 (minimum)
    0.1 (x10)
    1 (x10)
    10 (x10)
    100 (x10)
    ... (x10)
  • 0.0625:
    0.0625 (minimum)
    0.390625 (x6.25)
    3.90625 (x10)
    39.0625 (x10)
    390.625 (x10)
    ... (x10)
Regards,
CVH

StanTibbs
Junior Member
Posts: 10
Joined: Fri Sep 10, 2021 2:59 pm

Re: Zooming in & out causes grid scale to change

Post by StanTibbs » Fri Sep 24, 2021 2:40 pm

CVH Thank you
your detailed description is exactly what I'm experiencing.

CVH
Premier Member
Posts: 3416
Joined: Wed Sep 27, 2017 4:17 pm

Re: Zooming in & out causes grid scale to change

Post by CVH » Fri Sep 24, 2021 6:38 pm

Hi,

Here are some other lists:
The first value of each sequence is the fixed grid setting in X&Y.

50 - 250 - 2500 - 25000 - ...
5 - 25 - 250 - 250 - ...
0.5 - 2.5 - 25 - 250 - ...
0.05 - 0.25 - 2.5 - 25 - ...
min - x5 - x10 - x10 - ...
First factor for 5e1, 5e0, 5e-1 and 5e-2 >>> 5e0

20 - 40 - 400 - 4000 - ...
2 - 4 - 40 - 400 - ...
0.2 - 0.4 - 4 - 40 - ...
0.02- 0.04 - 0.4 - 4 - ...
min - x2 - x10 - x10 - ...
First factor for 2e1, 2e0, 2e-1 and 2e-2 >>> 2e0

62.5 - 390.625 - 3906.25 - 39062.5 - ...
6.25 - 39.0625 - 390.625 - 3906.25 - ...
0.625 - 3.90625 - 39.0625 - 390.625 - ...
0.0625 - 0.390625 - 3.90625 - 39.0625 - ...
min - x6.25 - x10 - x10 - ...
First factor for 6.25e1, 6.25e0, 6.25e-1 and 6.25e-2 >>> 6.25e0

40 - 160 - 1600 - 16000 - ...
4 - 16 - 160 - 1600 - ...
0.4 - 1.6 - 16 - 160 - ...
0.04 - 0.16 - 1.6 - 16 - ...
min - x4 - x10 - x10 - ...
First factor for 4e1, 4e0, 4e-1 and 4e-2 >>> 4e0

Minimum Grid with a value set = Value
First multiplication factor = Setting in exponential notation but with the exponent set to 0
Next successive multiplication factors = 10x

Don't know if this intentional ... :?

Regards,
CVH

StanTibbs
Junior Member
Posts: 10
Joined: Fri Sep 10, 2021 2:59 pm

Re: Zooming in & out causes grid scale to change

Post by StanTibbs » Fri Sep 24, 2021 10:33 pm

I tried using the fractional heading as Andrew suggested, my head went for a spin
I getting lost in the complexity of the fractional coordinates.
Converting all the fractions back and forth with decimal values becomes very cumbersome.
just not worthy of the effort.

I also tried other base values, the value 5 seemed to coincide well for the grid and snap interaction.
Other values didn't work. I even tried Sqrt of values to get the final scaling numbers I wanted,
thinking I could just not use the lower end. I just gave up because there was no way to stop zooming to small.

long ago there was a good reason I selected 0.0625 as steps, don't remember why.
I think it had something to do with text scales and sheet size for hard copy and blue print machines.
I'm in the process of recreating all my blocks to .01 grid references.

anyhow, the scaling should follow the same snap and grid relationship,
multiples of the same value from min. to max. otherwise there is bound to be errors.
With this said I could be wrong.
Thanks for the help, much appreciated.

User avatar
Husky
Moderator/Drawing Help/Testing
Posts: 4935
Joined: Wed May 11, 2011 9:25 am
Location: USA

Re: Zooming in & out causes grid scale to change

Post by Husky » Fri Sep 24, 2021 11:31 pm

StanTibbs wrote:
Fri Sep 24, 2021 10:33 pm
I tried using the fractional heading as Andrew suggested, my head went for a spin
I getting lost in the complexity of the fractional coordinates.
Converting all the fractions back and forth with decimal values becomes very cumbersome.
just not worthy of the effort.
Well - a nice thing is that QCAD accepts also fractional values. You can use 1/16 instead of 0.0625. :wink:
Additional the internet is loaded with decimal to fraction etc. calculators - just look for one which fits your needs.
If that's still not working for you - with a bit of work MS Excel can make the conversion easy ... :wink:
StanTibbs wrote:
Fri Sep 24, 2021 10:33 pm
long ago there was a good reason I selected 0.0625 as steps, don't remember why.
I think it had something to do with text scales and sheet size for hard copy and blue print machines.
I'm in the process of recreating all my blocks to .01 grid references.
It always helps to know why something is important to have. If you still in desperate need to have a kind of grid with always a 0.0625 spacing then you can create a workaround with an separate layer which contains a point array of 0.0625.
StanTibbs wrote:
Fri Sep 24, 2021 10:33 pm
anyhow, the scaling should follow the same snap and grid relationship,
multiples of the same value from min. to max. otherwise there is bound to be errors.
I agree! It sounds to me that the current situation is not an intended behavior and I encourage you to file a bugreport below https://www.qcad.org/bugtracker. That is the best way to get a solution or if it is intended behavior we get an explanation why it will be dismissed.
Work smart, not hard: QCad Pro
Win10/64, QcadPro, QcadCam version: Current.
If a thread is considered as "solved" please change the title of the first post to "[solved] Title..."

CVH
Premier Member
Posts: 3416
Joined: Wed Sep 27, 2017 4:17 pm

Re: Zooming in & out causes grid scale to change

Post by CVH » Tue Sep 28, 2021 12:50 pm

Stan,
I took the liberty of including a link to your bug report. :wink:
https://www.qcad.org/bugtracker/index.p ... sk_id=2284

Regards,
CVH

Post Reply

Return to “Chat”