Page 1 of 1

How to set grid to 1/2, 1/4, 1/8 etc

Posted: Tue May 01, 2018 4:39 am
by aberezin
It seems like the drawing prefs allows the grid to be some power of 10 (0.01,0.1,1.0,10.0,...) but not 0.5, 0.25, 0.125 such as would be common when specs are in inches. Is there any way to achieve this?

thx
The Noob Alan

Re: How to set grid to 1/2, 1/4, 1/8 etc

Posted: Tue May 01, 2018 5:56 am
by Husky
Hi Alan - welcome to the QCAD Forum.
aberezin wrote:Is there any way to achieve this?
Yes. Make sure your Drawing Unit is inch. You will find the settings for the actual drawing below Menu / Edit / Drawing Preferences:
Husky-2018.04.30-03.png
Husky-2018.04.30-03.png (78.01 KiB) Viewed 7121 times
Then below "Grid" you can fill in what ever you need - QCAD accepts Decimal, Fraction and simple mathematical expression:
Husky-2018.04.30-02.png
Husky-2018.04.30-02.png (37.22 KiB) Viewed 7121 times
If you need those settings for every new drawing please use the "Application Preferences" instead.

Re: How to set grid to 1/2, 1/4, 1/8 etc

Posted: Wed May 02, 2018 12:11 am
by aberezin
I tried that but it doesnt behave as expected. For example, for the drawing prefs, I set the units to inches (always) and the x grid and y grid to 1/4 .
Then at high zoom levels, I see grid spacing of 0.625" and that is what the SG snaps to. Ive tried to capture all of this in one screenshot. Note I set the metagrid x,y to 2" and it looks right and thus not aligned with the grid because 2.0 is not an integer multiple of 0.625 .

It seems I have to zoom very high to get it to render the grid at 0.25" .

Is that the right behavior? I would expect, at least, if it has to render the grid more coursely, it would do so in multiples of the grid setting.

thx
Alan

Re: How to set grid to 1/2, 1/4, 1/8 etc

Posted: Wed May 02, 2018 1:53 am
by Husky
I can't reproduce that behavior - could you please attache the drawing? Thanks.
Additional question: Which QCAD Version you're using?

Re: How to set grid to 1/2, 1/4, 1/8 etc

Posted: Wed May 02, 2018 1:56 am
by aberezin
See attached. Thanks for the quick response on all this.
-Alan

Version:
3.19.2.9 (3.19.2.9)
Internet:
QCAD.org
Build Date:
Mar 27 2018
Revision:
54b7331
Qt Version:
5.10.0
Architecture:
x86_64
Compiler:
Clang 8.0.0

Re: How to set grid to 1/2, 1/4, 1/8 etc

Posted: Wed May 02, 2018 2:16 am
by Husky
Thanks for the drawing!

The messurement in your drawing (0.625) isn't snaped to a grit point. My test dims are showing what is expected.
Husky-2018.05.01-07.png
Husky-2018.05.01-07.png (10.48 KiB) Viewed 7104 times
Note: A visible grid doesn't means it will snap to those points. It needs to be turned on ....
Husky-2018.05.01-08.png
Husky-2018.05.01-08.png (43.26 KiB) Viewed 7104 times
... or you have to include it in Auto Snap
Husky-2018.05.01-09.png
Husky-2018.05.01-09.png (87.85 KiB) Viewed 7104 times
Keep me posted how it turns out ... :wink:

Re: How to set grid to 1/2, 1/4, 1/8 etc

Posted: Wed May 02, 2018 6:41 am
by Husky
I played a little more with the Zoom ....
aberezin wrote:Is that the right behavior? I would expect, at least, if it has to render the grid more coursely, it would do so in multiples of the grid setting.
... and I have to agree - that is a kind of odd.

I assume that has somehow to do with the "Automatically scale grid" but I'm sure Andrew can tell you more about that.


It snaps correctly when you turn off "Automatically scale grid" below:
Husky-2018.05.01-13.png
Husky-2018.05.01-13.png (86.82 KiB) Viewed 7091 times

Re: How to set grid to 1/2, 1/4, 1/8 etc

Posted: Thu May 03, 2018 4:42 pm
by aberezin
Thanks. Ill play with it some more. I would downgrade this issue to a medium priority since the workaround is setting the autozoom per your previous post.

-Alan