Home / Forum / Software / Fusion 360 / Reply To: Fusion 360

Profile photo of WorkerDroneWorkerDrone
Post count: 12
#3629 |

If you look at the very bottom of the post file there is a section called function onClose() {

You can put anything you want into this section and will get generated at the end.

To go back to zero just add these two lines.

writeBlock(gMotionModal.format(1), “Z15”); //added to return tool to 15 height at the end ;Please don’t drag my bit across the work surface, lol
writeBlock(gMotionModal.format(1), “X0”, “Y0”); //return to zero

So the onClose function becomes:

function onClose() {

writeBlock(gMotionModal.format(1), “Z15”);
writeBlock(gMotionModal.format(1), “X0”, “Y0”);

writeBlock(mFormat.format(84) + “; Turn steppers off”);