public bool SetTargetFile(string filename) { gcode.SetFilename(filename); { gcode.WriteComment("Generated with MatterSlice {0}".FormatWith(ConfigConstants.VERSION)); } return gcode.IsOpened(); }