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

This commit is contained in:
Marius Stanciu 2019-01-09 21:55:09 +02:00 committed by Marius S
parent e6b0eb209c
commit 5b7fe5ef11
2 changed files with 5 additions and 2 deletions

View File

@ -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'

View File

@ -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