run external script from fusion 360 post processor

run external script from fusion 360 post processor

Machining_RapidMade
Participant Participant
571 Views
2 Replies
Message 1 of 3

run external script from fusion 360 post processor

Machining_RapidMade
Participant
Participant

Is there any way I can trigger an external script from with in my post processor, I've figured out how to write to an external file so I was wondering if there was a way to run a an external script.

0 Likes
Accepted solutions (1)
572 Views
2 Replies
Replies (2)
Message 2 of 3

ltomuta
Advisor
Advisor
Accepted solution

This is sample code from setup-sheet.cps

function onTerminate() {
  //newOutput(); // Added by PA
  // add this to print automatically - you could print to XPS and PDF writer
/*
  var device = "Microsoft XPS Document Writer";
  if (device) {
    executeNoWait("rundll32.exe", "mshtml.dll,PrintHTML " + quote(getOutputPath()) + quote(device), false, "");
  } else {
    executeNoWait("rundll32.exe", "mshtml.dll,PrintHTML " + quote(getOutputPath()), false, "");
  }
*/
}
Message 3 of 3

Machining_RapidMade
Participant
Participant
awesome thank you!
0 Likes