浏览代码

- modified the first line in the Gcode header to show the FlatCAM version and version_date

Marius Stanciu 7 年之前
父节点
当前提交
5b7fe5ef11
共有 2 个文件被更改,包括 5 次插入2 次删除
  1. 4 2
      FlatCAMObj.py
  2. 1 0
      README.md

+ 4 - 2
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'

+ 1 - 0
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