QCAD Bugtracker

  • Status Closed
  • Percent Complete
  • Task Type Feature Request
  • Category QCAD/CAM
  • Assigned To
  • Operating System All
  • Severity Low
  • Priority Very Low
  • Reported Version 3.23.0
  • Due in Version Undecided
  • Due Date Undecided
  • Votes
  • Private
Attached to Project: QCAD Bugtracker
Opened by Chuck Tilbury - 23.10.2019
Last edited by Andrew - 24.10.2019

FS#1981 - I would like an external post processor

I use gcode ripper for some of my jobs. (see here: https://www.scorchworks.com/Gcoderipper/gcoderipper.html) This is a large python script that I use to wrap flat code around a cylinder for engraving. What I would like to see is a way to run it from my own custom post processor that I wrote for my machine. Maybe some kind of keyword that allows me to specify an arbitrary external command with some parameters. It would be very helpful to me. I create a lot of ad-hock jobs to run.

Chuck Tilbury

Closed by  Andrew
24.10.2019 07:36
Reason for closing:  Works for me
Andrew commented on 24.10.2019 07:36

You can use QProcess to start external commands in your post processor:

    var process = new QProcess();
    process.error.connect(function(e) { qDebug("Error: ", e); });
    var stdout = "";
    var stderr = "";

    process.readyReadStandardOutput.connect(function() { stdout += process.readAllStandardOutput(); });
    process.readyReadStandardError.connect(function() { stderr += process.readAllStandardError(); });

    // set up environment variables (if needed):
    var env = QProcessEnvironment.systemEnvironment();
    env.insert("MYENV", "1");

    process.start("path/to/executable", ["-f", "-b", ...]);

    qDebug("stdout: " + stdout);
    qDebug("stderr: " + stderr);


Available keyboard shortcuts


Task Details

Task Editing