Menu

DropCutter

2009-01-15
2013-03-08
  • Daniel Heeks

    Daniel Heeks - 2009-01-15

    Hello,

    This project is just what I have been looking for, to use with my CAD/CAM project http://code.google.com/p/heekscnc/

    I have tried your test "Tests/DropCutterTest.py"
    I had to change:
    pathlist = pg.GenerateToolPath(x0, x1, y0, y1, z0, z1, dx, dy)
    to:
    pathlist = pg.GenerateToolPath(x0, x1, y0, y1, z0, z1, dx, dy, 0)

    also I had to change:
    g = SimpleGCodeExporter("cutter2.nc", z1)
    to:
    g = SimpleGCodeExporter("cutter2.nc", "mm", x1, y1, z1, 100, 7000)

    Also in pycam/Exporters/SimpleGCodeExporter.py, I had to change
    self.file.write("F"+feedrate+"\n")
    self.file.write("S"+speed+"\n")
    to:
    self.file.write("F"+str(feedrate)+"\n")
    self.file.write("S"+str(speed)+"\n")

    Thanks, Dan Heeks

     
    • Lode Leroy

      Lode Leroy - 2009-01-15

      Dan,

      yes, I have not been keeping the Tests/*.py scripts up to date with the api changes of late...

      what version of python are you using?  I have the impression that the code in SimpleGCodeExporter.py works for me (python 2.5)

      thanks for reporting this issue

       
    • Lode Leroy

      Lode Leroy - 2009-01-15

      aha, I see...
      in the gui, strings are passed, so this fixes the test code:
      g = SimpleGCodeExporter("cutter2.nc", "mm", x1, y1, z1, "100", "7000")

       

Log in to post a comment.