[solved] How to move a selected region by an integer offset in X and Y?

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
yurivict
Registered Member
Posts: 2
Joined: Sun Sep 18, 2022 2:00 am

[solved] How to move a selected region by an integer offset in X and Y?

Post by yurivict » Sun Sep 18, 2022 2:06 am

Both copy-paste and Modify/Move/Copy functions add some offset to X,Y of all elements that isn't integer. This offset depends on the mouse position.

How to restrict this offset to integers only?

I tried to use Snap/Grid, Snap/Restrict Orthogonally, Drawing Preferences/Grid/Grid Spacing functions but none of them helped.

Version: 3.27.6.7
FreeBSD 13.1

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

Re: How to move a selected region by an integer offset in X and Y?

Post by Husky » Sun Sep 18, 2022 2:41 am

yurivict wrote:
Sun Sep 18, 2022 2:06 am
Both copy-paste and Modify/Move/Copy functions add some offset to X,Y of all elements that isn't integer. This offset depends on the mouse position.
Both tools are operating without any offset. If it depends on mouse position then most likely an auto snap is responsible for that behavior. Please double check the active Autosnaps settings below Application Preferences / Snap / Auto Snap whether there could be the reason for your observation. If you are not sure un-tick all of them and test the behavior in your drawing again.
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..."

yurivict
Registered Member
Posts: 2
Joined: Sun Sep 18, 2022 2:00 am

Re: How to move a selected region by an integer offset in X and Y?

Post by yurivict » Sun Sep 18, 2022 4:53 am

Leaving only 'Grid point' on the Application Preferences/Auto Snap fixed the problem.

Thank you for your help!

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

Re: How to move a selected region by an integer offset in X and Y?

Post by CVH » Sun Sep 18, 2022 5:06 am

Hi,
Paste (PS) and the target position of Move/Copy (MV) both use the snap-points like any other tool that requires a position.

If you want to paste at a certain position integer based one can use absolute positioning by entering xxx,yyy in the command line.
Non integer based that is xxx.xx,yyy.yy
The dot and the comma are by the General Coordinate Format preferences. :wink:

To displace the target position by a certain amount we use relative positioning by entering @xxx,yyy in the command line.
Again x and y can be any number.

One can also use polar notation but that will seldom result in an integer based displacement. :wink:

The pasting position also relies on the fact if the cut or the copy was with (RT or RC) or without a reference (Ctrl+X or CP).
Without, the reference will be the middle-point of a box around the object(s).

Up to a point my auto spaced grid is displayed integer based.
Both the references for MV can then be picked on the grid to result in a integer based displacement.

Regards,
CVH

Post Reply

Return to “QCAD 'How Do I' Questions”