Hi there!
Yesterday I have upgraded my Linux distribution (Mageia 3 -> Mageia 7.1), and installed the latest version of dxf2gcode... and found some bugs ;-)
- The drag & drop of the shapes with the mouse doesn't work anymore (still works with the up & down arrows though). Is it the same on your systems? (I am currently using python 3.7 + qt 5.12). Do you know when it broke?
.
- Loading a project file (.d2g) that includes some custom GCode crashes dxf2gcode. I found the bug (missing test), I will commit a fix. For reference, the error is:
File "/usr/lib/python3.7/site-packages/dxf2gcode-20191025-py3.7.egg/EGG-INFO/scripts/dxf2gcode", line 1209, in <module>
File "/usr/lib/python3.7/site-packages/dxf2gcode-20191025-py3.7.egg/EGG-INFO/scripts/dxf2gcode", line 790, in load
File "/usr/lib/python3.7/site-packages/dxf2gcode-20191025-py3.7.egg/EGG-INFO/scripts/dxf2gcode", line 1086, in loadProject
File "/usr/lib/python3.7/site-packages/dxf2gcode-20191025-py3.7.egg/dxf2gcode/core/project.py", line 228, in load
File "/usr/lib/python3.7/site-packages/dxf2gcode-20191025-py3.7.egg/EGG-INFO/scripts/dxf2gcode", line 913, in plot
File "/usr/lib/python3.7/site-packages/dxf2gcode-20191025-py3.7.egg/EGG-INFO/scripts/dxf2gcode", line 476, in automaticCutterCompensation
AttributeError: 'CustomGCode' object has no attribute 'cut_cor'
.
- This "fix" (for "automatic cutter compensation") causes most of my .d2g project files to load totally messed-up: https://sourceforge.net/p/dxf2gcode/sourcecode/ci/361065354fcb97ae60f755f888d2f376c64001a6/
Basically, the "fix" removes cutter compensation for all shapes when "Automatic cutter compensation" is not checked, which is wrong because no automatic compensation doesn't mean "absence of compensation" (compensation can be chosen manually).
Side effect of this code is: when loading an existing project file (.d2g with cutter compensation done manually and saved into the project file), any existing compensation is cancelled by this patch and all the work previously done is lost.
I have attached a project file + a dxf to show the problem (uncheck "Automatic cutter compensation" to test). Basically, my project should look like the first image, but has in fact lost all its compensation settings, as shown on 2nd image (latest dxf2gcode).
For point 3), I am about to revert the "fix". I can possibly add a menu entry named "Cancel all cutter compensations" that executes the code from the "fix", but not sure it's necessary, because removing all cutter compensations is just a matter of selecting all shapes and selecting "Cutter Compensation -> G40 No Compensation".
Christian, Andrey, what do you think? Do I add this menu entry?


See you,
Xavier