소스 검색

- 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