I'm a computer geek who hangs around the machine shop too much and I wrote a small program in response to our need for creating gcode for milling sprockets. In order to visually confirm the results from the desktop I also made it generate a CAD file (dxf). Anyway, I thought it was too neat / useful not to share so I've posted it on my website at http://www.idleamusements.com/sprocketeer.htm. You basically choose the standard chain size ( or enter a custom pitch and roller diameter) and the number of teeth and it generates the gcode and CAD file.

Download it and give it a spin. If you find any problems or have any suggestions for improvement please let me know via the email address on the page.

Thanks,
Mike