qcad-cam 3.29.1 - box selection lineweight issue

If you are having problems with QCAD, post here. Please report bugs through our Bug Tracker instead.

Always attach your original DXF or DWG file and mentions your QCAD version and the platform you are on.

Moderator: andrew

Forum rules

Always indicate your operating system and QCAD version.

Attach drawing files and screenshots.

Post one question per topic.

Post Reply
jbergen
Junior Member
Posts: 10
Joined: Mon Oct 10, 2022 5:11 pm

qcad-cam 3.29.1 - box selection lineweight issue

Post by jbergen » Tue Jan 16, 2024 10:44 pm

I think Qcad-cam pro version 3.29.1 has a new issue with lineweights when using box-select with screen based linetypes enabled.
See attached drawing and screenshot.

To reproduce:
load the attached drawing.
Auto-zoom, or zoom way out.
Turn on "Screen based linetypes"
Click and drag to select an area.

Note the line weight for the selection box is huge when screen based linetypes is enabled, but not when it's disabled.

Try various zoom levels with "Screen based linetypes" on and off
I don't recall screen based linetypes affecting this on previous versions of Qcad
Is there a way to make box-select ignore screen based linetypes?
Attachments
Planks.dxf
(596.55 KiB) Downloaded 225 times
Planks.dxf - QCAD_005.png
Planks.dxf - QCAD_005.png (171.74 KiB) Viewed 2927 times

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

Re: qcad-cam 3.29.1 - box selection lineweight issue

Post by CVH » Wed Jan 17, 2024 7:36 am

jbergen wrote:
Tue Jan 16, 2024 10:44 pm
I think Qcad-cam pro version 3.29.1 has a new issue with lineweights when using box-select with screen based linetypes enabled.
See attached drawing and screenshot.
From the looks of it I think that you are right.
Probably the same sort of issue that is reported for the info tools: https://www.qcad.org/rsforum/viewtopic. ... 368#p43368
jbergen wrote:
Tue Jan 16, 2024 10:44 pm
I don't recall screen based linetypes affecting this on previous versions of Qcad
Is there a way to make box-select ignore screen based linetypes?
It should not and no there is no reason to.

Are you using a high resolution display?
https://github.com/qcad/qcad/commit/d04 ... 12a934afb7

Or it has to do with the porting to the new graphics view.

The red outer contour has a pixel based width and that requires it to be scaled according the view depth.
Something similar is required with the info tools.

Over to Andrew.
https://qcad.org/bugtracker/index.php?d ... sk_id=2516

Regards,
CVH

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

Re: qcad-cam 3.29.1 - box selection lineweight issue

Post by CVH » Wed Jan 17, 2024 8:39 am

Seems to be fixed:
https://github.com/qcad/qcad/commit/e1e ... 078c3be36c
https://github.com/qcad/qcad/commit/1ba ... 945fe4e07b
Version is updated to 3.29.2.0 ... 9min ago

Regards,
CVH

jbergen
Junior Member
Posts: 10
Joined: Mon Oct 10, 2022 5:11 pm

Re: qcad-cam 3.29.1 - box selection lineweight issue

Post by jbergen » Fri Jan 19, 2024 7:18 pm

Looks like Window Zoom also has the same or similar issue, bit it's only noticeable at very high zooms.
Doesn't warrant a revision IMO, more of an FYI

To reproduce:

Draw a 1 mm square
Enable Screen Based Linetypes
Use Window Zoom to repeatedly zoom in on the 1 mm square
Observe how the selection box's line width increases with each zoom until it becomes an enormous blob

qc 3.29.2
Mint 21.2

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

Re: qcad-cam 3.29.1 - box selection lineweight issue

Post by CVH » Sat Jan 20, 2024 11:12 am

jbergen wrote:
Fri Jan 19, 2024 7:18 pm
Looks like Window Zoom also has the same or similar issue, bit it's only noticeable at very high zooms.
Doesn't warrant a revision IMO, more of an FYI
To reproduce: ...
Ifso, then the issue is not tackled where it occurs.

For how far that I understand it:
The majority of thing on screen are scaled representatives.
Or in screen-based, or in real size ... Rendered one way or the other way.
Adding something pixel based would introduce a kind of items to be rendered differently.
But if that is added so that it would look a pixel wide then there is no difference in how to render it.
Pixel based things, usually temporary auxiliary things, are then added so that it counteracts the final rendering.

Before the box selection border always looked 1 pixel wide, or continuously and filled blueish, or dashed and filled greenish.
But high zoom in correlation with fixed tolerances always has the Math against it.

This is your 1x1unit square at the origin, screen-based, with a selection box under 3.27.6.0 ... Remark the overshoot left-high.
There is no difference when turning of screen-based apart from the fact that the screen is totally filled with the width of the lines (0.25mm(ISO)).
As if my background turns white but in reality it are the things in the foreground that are displayed in white.
This is the main reason why screen-based linetypes exits.
If I zoom in even further then the border glitch may become a horizontal line spanning the entire screen.
HighZoomSelection.png
HighZoomSelection.png (5.01 KiB) Viewed 2550 times

Please try to mimic this example and post a screen grab of how that is visualized for you.
IMHO: We can zoom out for an overview or zoom in for details and that should not affect the selection border.

Regards,
CVH

jbergen
Junior Member
Posts: 10
Joined: Mon Oct 10, 2022 5:11 pm

Re: qcad-cam 3.29.1 - box selection lineweight issue

Post by jbergen » Sat Jan 20, 2024 4:10 pm

The issue was introduced with the Qcad version 3.29, that's why you're not seeing it in 3.27.6

Here is the screen grab of a window zoom with Screen Based Linetypes enabled.

With Screen Based Linetypes disabled, the selection box is 1 pixel wide, as it should be.

I am quite sure this is part of the same Box Select issue.
Untitled 1 - - QCAD_003.png
Untitled 1 - - QCAD_003.png (152.75 KiB) Viewed 2490 times

jbergen
Junior Member
Posts: 10
Joined: Mon Oct 10, 2022 5:11 pm

Re: qcad-cam 3.29.1 - box selection lineweight issue

Post by jbergen » Sat Jan 20, 2024 4:18 pm

Here is a link to a video if that's helpful. This is a window zoom, first with screen based linetypes disabled, then with it enabled.

https://drive.google.com/file/d/1Q6UhAF ... sp=sharing

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

Re: qcad-cam 3.29.1 - box selection lineweight issue

Post by CVH » Sun Jan 21, 2024 9:08 am

Thanks for reporting, although it doesn't mimic my example but there is clearly something not OK.
I also remark that your second example has chamfered corners.
And for some reason your QCAD instance has no rulers or you turned them off.

I plan to install a separate trial 3.29.2 version an take it from there.
Testing for all auxiliary shapes that I know of.
And for other reported issues with .29 ... .0/.1/.2 being fixed or not meanwhile.

Regards,
CVH

jbergen
Junior Member
Posts: 10
Joined: Mon Oct 10, 2022 5:11 pm

Re: qcad-cam 3.29.1 - box selection lineweight issue

Post by jbergen » Sun Jan 21, 2024 7:17 pm

I think maybe we're both getting confused. Perhaps I can simplify.

FS#2516 fixed a bug where the "Box Selection border", and "Measuring line Scale", were not pixel based width, but should be. This bug did not exist prior to version 3.29

I am reporting now, that "Window Zoom" also has the same bug. The Window Zoom border should also be pixel based width.

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

Re: qcad-cam 3.29.1 - box selection lineweight issue

Post by andrew » Mon Jan 22, 2024 9:35 am

jbergen wrote:
Sun Jan 21, 2024 7:17 pm
I am reporting now, that "Window Zoom" also has the same bug. The Window Zoom border should also be pixel based width.
Thanks, bug report at:
https://www.qcad.org/bugtracker/index.p ... sk_id=2522

Post Reply

Return to “QCAD Troubleshooting and Problems”