From 5b7fe5ef11a93a0250a76f80fbd280b05091864f Mon Sep 17 00:00:00 2001 From: Marius Stanciu Date: Wed, 9 Jan 2019 21:55:09 +0200 Subject: [PATCH] - modified the first line in the Gcode header to show the FlatCAM version and version_date --- FlatCAMObj.py | 6 ++++-- README.md | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/FlatCAMObj.py b/FlatCAMObj.py index fb61874f..10b3ac7b 100644 --- a/FlatCAMObj.py +++ b/FlatCAMObj.py @@ -3835,7 +3835,8 @@ class FlatCAMCNCjob(FlatCAMObj, CNCjob): pass if marlin is False: - gcode = '(G-CODE GENERATED BY FLATCAM - www.flatcam.org %s)\n' % str(self.app.version_date) + '\n' + gcode = '(G-CODE GENERATED BY FLATCAM v%s - www.flatcam.org - Version Date: %s)\n' % \ + (str(self.app.version), str(self.app.version_date)) + '\n' gcode += '(Name: ' + str(self.options['name']) + ')\n' gcode += '(Type: ' + "G-code from " + str(self.options['type']) + ')\n' @@ -3847,7 +3848,8 @@ class FlatCAMCNCjob(FlatCAMObj, CNCjob): gcode += '(Created on ' + time_str + ')\n' + '\n' else: - gcode = ';G-CODE GENERATED BY FLATCAM - www.flatcam.org %s\n' % str(self.app.version_date) + '\n' + gcode = ';G-CODE GENERATED BY FLATCAM v%s - www.flatcam.org - Version Date: %s\n' % \ + (str(self.app.version), str(self.app.version_date)) + '\n' gcode += ';Name: ' + str(self.options['name']) + '\n' gcode += ';Type: ' + "G-code from " + str(self.options['type']) + '\n' diff --git a/README.md b/README.md index f0623dca..c6d74713 100644 --- a/README.md +++ b/README.md @@ -13,6 +13,7 @@ CAD program, and create G-Code for Isolation routing. - added a fix to allow creating of Excellon geometry even when there are points with no tools by skipping those points and warning the user about this in a Tcl message - added a message box asking users if they want to save the project in case that either New Project menu entry is clicked or if Exit menu entry is clicked or if the app is closed from the close button. The message box will be showed only if there are objects in the collection. +- modified the first line in the Gcode header to show the FlatCAM version and version_date 8.01.2019