Hi Todd, The only reason for "messing" with dfx2gcode as a middleman is that it has a "drag knife" setting, which (I hope means) "on the line, corners over x degrees exceed by caster amount, lift Z routine for caster change to new direction" I wanted to see how that routine worked as far as g code.
Martin ________________________________ From: Todd Zuercher Freecad can make G-code directly, leaving out the DXF middle man. Have you tried that? Todd Zuercher P. Graham Dunn Inc. 630 Henry Street Dalton, Ohio 44618 Phone: (330)828-2105ext. 2031 -----Original Message----- From: Martin Dobbins <tu...@hotmail.com> Sent: Thursday, June 25, 2020 1:34 PM To: Enhanced Machine Controller (EMC) <emc-users@lists.sourceforge.net> Subject: Re: [Emc-users] dxf2gcode [EXTERNAL EMAIL] Be sure links are safe. I've tried two coming from Freecad, both saved as "Autocad dxf", one was a simple 2D fully constrained 20mm square and the other was the same thing padded to a thickness of 0.254 mm. I can try a dxf from another source if that is the problem. Martin ________________________________ From: Sebastian Kuzminsky On 6/25/20 10:43 AM, Martin Dobbins wrote: > I'm trying to use this on Ubuntu 20.04 because I'm looking to write some g > code for a tiny (Roland) drag knife, I wanted to see how it handled corners. > > Unfortunately, while the gui will load OK when I try to load a dxf I'm > getting a runtime error: > > File "/usr/lib/python3/dist-packages/dxf2gcode/core/shape.py", line 609, in > abs_iter > raise StopIteration() > StopIteration > > The above exception was the direct cause of the following exception: > > Traceback (most recent call last): > File "/usr/bin/dxf2gcode", line 727, in open > self.load() > File "/usr/bin/dxf2gcode", line 874, in load > self.makeShapes() > File "/usr/bin/dxf2gcode", line 922, in makeShapes > self.makeEntityShapes(self.entityRoot) > File "/usr/bin/dxf2gcode", line 973, in makeEntityShapes > self.makeEntityShapes(newEntityContent, ent_geo.Layer_Nr) > File "/usr/bin/dxf2gcode", line 996, in makeEntityShapes > tmp_shape.AnalyseAndOptimize() > File "/usr/lib/python3/dist-packages/dxf2gcode/core/shape.py", line 175, > in AnalyseAndOptimize > self.setNearestStPoint(Point()) > File "/usr/lib/python3/dist-packages/dxf2gcode/core/shape.py", line 190, > in setNearestStPoint > min_geo_nr, _ = min(enumerate(self.geos.abs_iter()), > RuntimeError: generator raised StopIteration > > Any ideas for a fix? This was supposed to be a quick project. That looks like a bug in dxf2gcode. Can you post the DXF file that causes the problem? -- Sebastian Kuzminsky _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users