← All bug reports

FS#505multiple print configurations (layer+scale+center)

Type
Feature Request
Status
Closed
Resolution
Won't implement
Category
QCAD (main)
Severity
Low
Priority
Low
Reported version
3 RC3
Operating system
All
Reported
2012-02-19 by stefan
Closed
2012-02-28 by andrew

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

Comments (3)

stefan 2012-02-23

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

stefan 2012-02-24

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.

stefan 2012-02-24

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.

Closure comment

Close requested by user