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#505 - multiple print configurations (layer+scale+center)

Attached to Project: QCAD
Opened by Stefan (stefan) - Sunday, 19 February 2012, 11:05 GMT+2
Last edited by Andrew (andrew) - Tuesday, 28 February 2012, 11:36 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 RC3
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No


having multiple print configurations regarding visible layers, scale and paper centre saved in the drawing or in a separate file would be extremely helpful

This task depends upon

Closed by  Andrew (andrew)
Tuesday, 28 February 2012, 11:36 GMT+2
Reason for closing:  Won't implement
Additional comments about closing:  Close requested by user
Comment by Stefan (stefan) - Thursday, 23 February 2012, 18:10 GMT+2

I wrote a small QCAD3-ECMA-script to do this, but I stick at the same issue as:


How do I switch the visibility of layers in a script? Attached you find my quick-and-dirty script (with copy+paste from Print.js and Dwg2Pdf.js) with "DOES NOT WORK" in line 56...

Thanks a lot

Comment by Stefan (stefan) - Friday, 24 February 2012, 12:58 GMT+2

got it, perhaps it helps others:

  var layer = this.document.queryLayer(39);
  var operation = new RModifyObjectsOperation();

I will request closure of this request, beautify my script and upload it.

Comment by Stefan (stefan) - Friday, 24 February 2012, 20:40 GMT+2

Attached is the cleaned up script. Two major issues remain (and I have no idea how to solve):
- points are not printed (printed without problems in original print function of QCad)
- blocks are either completely visible or completely invisible (blocks with multiple layers are visible even if some of these layers are frozen)

Thank you for any help on those issues.