By thoroughly analyzing present status of CNC parametric programming, a general parametric programming template (GPPT) oriented 3-axis CNC milling machine with FANUC 0i system was proposed. Many CNC functions such as polar programming(G16/G15), coordinate rotation(G68/G69) and local coordinate(G52) were integrated into one program with the characteristic of structured program. The GPPT could be used to generate feature-based program easily. Practical applications of the GPPT show that it can solve the vast majority of part/feature programming.