public bool setTargetFile(string filename) { gcode.setFilename(filename); { gcode.writeComment("Generated with MatterSlice {0}".FormatWith(ConfigConstants.VERSION)); } return(gcode.isOpened()); }