Snap to whole number coordinates

Use this forum to ask questions about how to do things in QCAD.

Moderator: andrew

Forum rules

Always indicate your operating system and QCAD version.

Attach drawing files and screenshots.

Post one question per topic.

Post Reply
drbq
Newbie Member
Posts: 4
Joined: Fri Jul 22, 2022 3:46 am

Snap to whole number coordinates

Post by drbq » Sat Aug 13, 2022 8:42 pm

Is it possible to snap to whole number coordinates? Grid snap works perfectly if I'm zoomed in at the level where grid spacing is 1. I'd like that behavior even when I zoom out and the grid rescales.

Thank you

QCAD Professional 3.27.6.0
MacOS 12.5 (21G72)

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

Re: Snap to whole number coordinates

Post by Husky » Sat Aug 13, 2022 9:19 pm

Would it help to turn off the grid scaling?

Husky-2022.08.13-01.png
Husky-2022.08.13-01.png (20.62 KiB) Viewed 2634 times
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..."

drbq
Newbie Member
Posts: 4
Joined: Fri Jul 22, 2022 3:46 am

Re: Snap to whole number coordinates

Post by drbq » Sun Aug 14, 2022 6:10 pm

I just tried, but it didn't seem to have any effect on snapping.

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

Re: Snap to whole number coordinates

Post by Husky » Sun Aug 14, 2022 6:47 pm

drbq wrote:
Sun Aug 14, 2022 6:10 pm
I just tried, but it didn't seem to have any effect on snapping.
Ok.

Most likly I didn't correctly understand what you are looking for. Please elaborate what means exactly
drbq wrote:
Sat Aug 13, 2022 8:42 pm
Is it possible to snap to whole number coordinates?
If possible with screenshots etc. Thanks.
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..."

drbq
Newbie Member
Posts: 4
Joined: Fri Jul 22, 2022 3:46 am

Re: Snap to whole number coordinates

Post by drbq » Sun Aug 14, 2022 8:09 pm

If the display is zoomed in so that the grid lines are at one unit increments, grid snap will make the cursor move at 1 unit increments across whole numbers. If I move the cursor horizontally, it will jump from (0,0) to (1,0) to (2,0) etc.
1.png
1.png (19.1 KiB) Viewed 2569 times

If I zoom out using grid snap, the cursor will skip whole numbers smaller than the grid increment -- moving from (0,0) to (10,0) to (20,0), etc.
2.png
2.png (16.95 KiB) Viewed 2569 times

If I zoom in, the cursor will include fractional coordinates -- moving from (0,0) to (0.1,0) to (0.2,0), etc.
3.png
3.png (19.39 KiB) Viewed 2569 times

I'm looking for a snap mode that will cause the cursor to move at one unit increments like the first example, but at any zoom level.

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

Re: Snap to whole number coordinates

Post by Husky » Sun Aug 14, 2022 9:35 pm

Thanks for the explanation!

What are your Grid settings below Drawing Preferences.

Try this settings:

Husky-2022.08.14-02.png
Husky-2022.08.14-02.png (18.83 KiB) Viewed 2559 times
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: Snap to whole number coordinates

Post by CVH » Sun Aug 14, 2022 11:01 pm

Hi,
Like Husky explained ...
It can be done with a fixed grid size and not auto-scaled, but there is a catch ...

What if you zoom out too far?
The display would be filled up with grid lines all spaced 1 unit apart.
Fortunately, QCAD prevents this and does not display a grid nor a meta grid at some point.
This is determined by the minimum grid spacing in pixels.
When it is not displayed, you can not snap to it. :wink:

Catch 22: When the grid spacing is beyond minimal no numbers are displayed anymore.
Even with the meta-grid is still visible.

Remark that Husky meta-grid is set to 12 for drawings in inch.
At a certain zoom level you might even get numbers like 0-2.4-4.8-7.2-9.6-12 but the grid would still be spaced 1 inch.
In a metric case I would set that to 10. :wink:

Regards,
CVH

Post Reply

Return to “QCAD 'How Do I' Questions”