The fast developments of electrical information industry bring electrical manufacture technology the rigorous challenges and the drastic market competitions. This text aiming at the problem, which is instantly solved in the PCB hole sit machining, proposes an oriented path optimized technology for PCB hole sit machining. And the technology uses Greedy algorithm and Ant System Algorithm to solve the problems that more holes and empty runs make machining time longer. The actual applied effect is better and machining efficiency increases 23.9%. Obtain good economic performance.