I've been tinkering with learning Python and converting my C programs that generate G-code for the common operations I perform to Python. I have the first one done, a program to cut rectangular slots, called treprect, for trepan rectangle. It makes one cut inside the final diameter and spirals down to the complete depth, then makes a larger finishing cut at full depth. I started with nc_files/holecircle.py as a guide. I commented out a few lines to make it able to run standalone, just easier to test that way. This is nowhere near ready for prime-time, but I wonder if somebody would want to critique what I've done? How should I add these to LinuxCNC? Just add the files to master?
I have a bunch more. One generates separate files to spot, then drill, and then tap a regular grid of holes, another does the same for a file of XY coords. generating 3 separate programs probably doesn't work for the filter scheme of these python programs. Some others do a ramp-down version of treprect, step-down and ramp down versions of a round hole, a round pocket program, thread milling, and more. Jon ------------------------------------------------------------------------------ This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev _______________________________________________ Emc-developers mailing list Emc-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-developers