QCAD

QCAD - 2D CAD System.

Click here for a documentation of the DokuWiki formatting syntax that can be used in reports

Please search for existing tasks (also closed ones) before opening a new task.

Please make sure that you are using the latest Version of QCAD before posting a bug (menu Help > Check for Updates)

Tasklist

FS#1635 - Print current view / Portrait

Attached to Project: QCAD
Opened by Husky (Husky) - Tuesday, 26 September 2017, 04:58 GMT+1
Last edited by Andrew (andrew) - Wednesday, 27 September 2017, 10:15 GMT+1
Task Type Bug Report
Category QCAD (main)
Status Closed
Assigned To Andrew (andrew)
Operating System All
Severity Low
Priority Normal
Reported Version 3.18.0
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Hi,

if I use the “Print current view” tool for a Landscape format - everything works just nicely!
If I use it for a Portrait print - the scale is way of.

For this example I used a rectangle as reference. The details what I’m looking for are captured with same sized red rectangles. The Paper orientation was changed before I used the Print command. To have the maximum view I select the rectangle and used “Zoom to selection” - then Print to current view.

Portrait, scale way of:
Husky-2017.09.25-03.png

Portrait, manual adjusted - it should look close to this one:
Husky-2017.09.25-04.png

I attache for testing the dxf too.

This task depends upon

Closed by  Andrew (andrew)
Wednesday, 27 September 2017, 10:15 GMT+1
Reason for closing:  Not a bug
Additional comments about closing:  Please re-open if you think this is a bug.
Comment by Andrew (andrew) - Wednesday, 27 September 2017, 10:14 GMT+1

Could this be a misunderstanding of the tool?
The "Print Current View" tool prints the contents of the drawing canvas as shown on your screen. It is not related in any way to the current selection.

If you zoom to the portrait rectangle, you will likely still see a lot of the drawing left and right of the rectangle in your canvas. That all has to be printed and therefore will be fit on the paper as well.
In other words, it's the green rectangle (see attachment) that is fitted on paper, not the red one.

Comment by Husky (Husky) - Thursday, 28 September 2017, 06:26 GMT+1

"Could this be a misunderstanding of the tool?
The "Print Current View" tool prints the contents of the drawing canvas as shown on your screen. It is not related in any way to the current selection."

Yes I know that the selection has nothing to do with this tool. I used the selection only to get the maximum view with the "View to selection" tool.

However - the Landscape result is absolute as expected. My problem is the Portrait result. As you can see in my screenshot Husky-2017.09.25-02.png that QCAD figured out the maximum print size of the current view for a Landscape orientated Format. Of course the ratio is not identical between the Current view and the Sheet format what leads to a result that shows "more" on the top and on the bottom of the paper. The right and the left side is precisely cut to the current view. Just perfect!

If I check the result for a portrait orientation like Husky-2017.09.25-03.png then you can see that we have a lot "more drawing" around all sides of the rectangle visible. That is not even close to the current view represented by the Portrait rectangle! It should show the rectangle close to the top and to the bottom edge of the paper like Husky-2017.09.25-04.png. Of course - regarding to the ratio between screen and paper it shows then more or less on the right and on the left side but that would be correct!

I assume that QCAD is using the x information from the current view for the calculation. That works fine for Landscape!
Apparently QCAD is also using this x information for Portrait oriented paper what doesn't works. I think it should be the Y information ...

Test it by yourself with my dxf
1. set Print paper orientation to Portrait,
2. select the Portrait rectangle,
3. use View to selection to get the maximum view = current view
4. launch Print current view - then cancel the print dialog and compare the result with your "current view".

Comment by Andrew (andrew) - Thursday, 28 September 2017, 09:53 GMT+1

I did test this and it seems to work fine here.

Let's say a user views their drawing as shown in screen.png.

My interpretation of "print current view" is:
Print everything in the current view, without cutting anything off. If screen and paper ration don't match, print more around the edges to account for it but never cut anything off (print_current_view_without_cut_off.png).

Your interpretation of "print current view" is:
Print the current view as large as possible to fill the entire paper and cut off parts of what is visible in the current view to account for the difference in ratio (print_current_view_with_cut_off.png).

Their both legitimate interpretations, but I do think that the first one is more on the cautious side (better print too much than cutting anything off).

Comment by Husky (Husky) - Thursday, 28 September 2017, 20:08 GMT+1

Ok - I understand your point of view and agree. :-)

Comment by Andrew (andrew) - Thursday, 28 September 2017, 21:21 GMT+1

OK, great thanks :)

Loading...