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)


FS#657 - Auto Zoom applied too often

Attached to Project: QCAD
Opened by Leo Potjewijd (LeoP) - Sunday, 29 July 2012, 12:44 GMT+2
Last edited by Andrew (andrew) - Wednesday, 22 May 2013, 16:02 GMT+2
Task Type Feature Request
Category QCAD (main)
Status Closed
Assigned To Andrew (andrew)
Operating System All
Severity Low
Priority Normal
Reported Version 3.0.0
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No


Auto Zoom should not be applied every time you go back and forth between editing a block and the main drawing.
At least, not by default: it just isn’t practical. QCAD2 didn’t do it...

see also http://www.ribbonsoft.com/rsforum/viewtopic.php?f=31&t=2111

This task depends upon

Closed by  Andrew (andrew)
Wednesday, 22 May 2013, 16:02 GMT+2
Reason for closing:  Implemented
Comment by Leo Potjewijd (LeoP) - Sunday, 29 July 2012, 12:46 GMT+2

Actually, I should have called it 'medium severity'...

Comment by Andrew (andrew) - Tuesday, 31 July 2012, 11:55 GMT+2

QCAD 2 used to open the block that is being edited in a separate window. After editing the block, the window was closed. The window with the original drawing was never affected by this. QCAD 3 opens the edited block in the same window as the main drawing. This makes the autozoom necessary when switching between blocks.

Possible solution: store the last known position / zoom for every block and apply it when switching blocks.

Comment by Leo Potjewijd (LeoP) - Tuesday, 31 July 2012, 14:26 GMT+2

A good suggestion, but how do I do that?

Comment by Andrew (andrew) - Tuesday, 31 July 2012, 15:10 GMT+2

This is a suggestion for future development.

If you are interested, this will likely go into scripts/Block/EditBlock/EditBlock.js

The idea is:

// store offset and zoom factor of current view in a map:
// change current block that is being edited:
// restore offset and zoom factor of new block from map or default to auto zoom: