The paper discuss the methods of extracting process features of parts from STEP AP203 file and collecting process information from the macro of CAM software. First the STEP file and its data structure are analyzed, and the method of extracting and recognizing process features is studied. Secondly, according to the different processing methods of part, the function of macros in PowerMILL is used to save excellent processing information, and the reusable process database is established. Finally, the mapping between the process features and the processing information is established. Take mold electrode as a example, these methods are proved in this paper, and a system which can recognize process features, collect processing information and program NC code automatically is developed.