In the late '90s, I was working with a friend, who has been working in the machining field since the early '70s, to CNC adapters to fit electric motors to automobile transmissions. I would do the design work on CAD, and email him the CAD drawing. He would then import the CAD file into a CAD/CAM program, and turn the drawing into the actual code that was fed into the CNC mill to machine the part, and email the code back to me.
I've been learning to do the CAM portion recently; here is the first part of a program I coded yesterday, and a pic of the computer-rendered part..
; 72d.AGC*
; 03/27/13, 02:24PM *
G49 G40 G90 G17*
T1 M6*
; TOOL 1 *
; *
N100 G0 G90 X0.0 Y5.437*
N101 M3 S1500*
N102 M1 L1*
N103 G43 H1 Z0.1*
N104 G98 G81 Z-0.05 R0.05 F4.0*
N105 X0.7158 Y5.0934*
N106 X1.3368 Y4.6621*
N107 X0.6893 Y3.9092*
N108 X0.1488 Y4.2604*