mecamira / dxf2gcode

Automatically exported from code.google.com/p/dxf2gcode
0 stars 0 forks source link

Parenthesis in .dxf files will produce invalid G-Code #43

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Load a .dxf file with parenthesis in filename (e.g. MyFile(1).dxf)
2. Export G-Code
3. Load G-Code in LinuxCNC => An error dialog will popup

Original issue reported on code.google.com by r.lichte...@gmail.com on 2 Feb 2014 at 6:18

GoogleCodeExporter commented 9 years ago
The reason for that is that G-Code does not allow nested comments and we are 
inserting a "Created from file %s" comment in the file (where %s is the 
filename).

If that filename contains ( or ) or both the resulting file will no longer be 
valid.

Original comment by r.lichte...@gmail.com on 2 Feb 2014 at 6:20

GoogleCodeExporter commented 9 years ago
Fix: Replace ( and ) by _ in the filename.

Original comment by r.lichte...@gmail.com on 2 Feb 2014 at 6:23