Aiming at the interference problem between the tool and the surface during the contact between the blade position and the composite material during the off-line programming scraping process of aviation composite parts, the contact effect of the blade during the scraping process of the composite surface is discussed, and a rotation projection attitude optimization strategy is proposed. Firstly, by constructing the mathematical model of the contact between the scraper and the surface, the geometric properties of the scraper and its contact on the surface are analyzed. Then, the non-uniform rational B-spline (NURBS) surface is used to reconstruct the surface, and the position information of the local area of the contact point is obtained to obtain the normal direction and curvature. In order to evaluate the contact effect of the scraper, an objective function is defined to minimize the contact error between the scraper linear trajectory and its projection on the surface, thereby quantifying the contact accuracy. By comparing the position and attitude of the scraper before and after optimization, the effectiveness of the proposed optimization method is verified. The optimized scraper posture significantly improves the contact accuracy with the composite surface, better adapts to the geometric characteristics of the complex surface, and ensures the efficiency and consistency of the scraping process. The research results provide a new perspective and method for the future development of automatic scraping process, and also provide an effective solution and technical means for other industries in the application scenario of curved scraping.