The processing of complicated surface is always a tough job in multi-axis machining. Pilger-roller is a kind of tool molds with complicated surface. To process the complicated grooved-surface of Pilger-roller, an algorithm, which included grooved-surface modeling, tool-path planning and cutter location (CL) computation, is proposed and implemented. The tool-path generated by this algorithm is smooth and has no interference. In order to meet the demand of Pilger-roller processing in efficiency and automation, automatically-processing software is developed based on Original Equipment Manufacturer (OEM). Compared with the conventional methods, this software makes the online programming visualized and efficient. This software has been applied to actual production and could meet the commercial requirement.