Since I wrote the Spurgear code some years ago, I've received several requests for a program to draw a bevel gear. The latest request is from Howard Lindsey, an AutoCAD high-school teacher in Inverness, Florida. Now at last I'm pleased to present BEVELGEAR.LSP and the dialog box file BEVELGEAR.DCL.
BEVELGEAR.LSP takes the gear pitch diameter and the numbers of teeth on the gear and pinion as input via a dialog box. The beveled gear is then automatically drawn using the intersection of the gear and pinion shafts as the origin point (0.0, 0.0 in world coordinates).
I wrote the code in AutoCAD 2006 and have tested it in both 2006 and 2007, although it should also run in earlier versions such as 2004 and 2005.