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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
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
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")