include("GCode.js"); function JThornton(documentInterface, newDocumentInterface) { GCode.call(this, documentInterface, newDocumentInterface); // set output unit: this.unit = RS.Inch; } JThornton.prototype = new GCode(); JThornton.prototype.getFileExtensions = function() { // set output file extension: return ["ngc"]; }; JThornton.prototype.exportContourEntity = function(entity, rampOnPoint, rampOffPoint) { // mirror output along the horizontal axis (invert Y): entity.flipVertical(); GCode.prototype.exportContourEntity.call(this, entity, rampOnPoint, rampOffPoint); };