The ratchet wheel is the most important catenary part in the ratchet wheel compensation device. It is easy to be deformed in the heat treatment process, resulting in the ratchet wheel's unevenness exceeding the technical standard, affecting the product quality of the following process, and ultimately affecting the installation accuracy and service life of the ratchet wheel compensation device. The tooling design was studied to ensure that the deformation of ratchet wheel can be controlled during heat treatment. The results show that the design of the tooling scheme can effectively ensure that after the heat treatment of ratchet wheel, the flatness meets the technical requirements, so that the effective utilization rate of materials and production efficiency has been improved, stable product technical requirements, shorten the work piece processing time.