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

Attached to Project: QCAD
Opened by Stefan (stefan) - Sunday, 19 February 2012, 11:05 GMT+1
Last edited by Andrew (andrew) - Tuesday, 28 February 2012, 11:36 GMT+1
Task Type Feature Request
Category 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

Details

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+1
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+1

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

http://www.qcad.org/rsforum/viewtopic.php?t=330

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+1

got it, perhaps it helps others:

  var layer = this.document.queryLayer(39);
  layer.setFrozen(true);
  var operation = new RModifyObjectsOperation();
  operation.addObject(layer);
  this.di.applyOperation(operation);
  this.di.clearPreview();
  this.di.repaintViews();

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

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

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.

Loading...