QCAD Bugtracker

  • Status Closed
  • Percent Complete
    100%
  • Task Type Feature Request
  • Category QCAD (main)
  • Assigned To
    Andrew
  • Operating System All
  • Severity Low
  • Priority Very Low
  • Reported Version 3 RC3
  • Due in Version Undecided
  • Due Date Undecided
  • Votes
  • Private
Attached to Project: QCAD Bugtracker
Opened by Stefan - 19.02.2012
Last edited by Andrew - 28.02.2012

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

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

Closed by  Andrew
28.02.2012 10:36
Reason for closing:  Won't implement
Additional comments about closing:  

Close requested by user

Stefan commented on 23.02.2012 17:10

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 commented on 24.02.2012 11:58

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 commented on 24.02.2012 19:40

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...

Available keyboard shortcuts

Tasklist

Task Details

Task Editing