If you want GearGen, it's available (as shareware, presumably, despite its age)
here. Geargen makes some segmented polylines in the .dxf output, but we couldn't get it to work with the ancient EDM (and its equally ancient computer, and ancient CAM software) that we tried it on.