According to the change of manufacturing style from mass production to customized production, it is important to manage the process plan and to control the machining quality of products. On machine measurement (OMM) has an advantage that it eliminates the operations of remove and reattachment of the workpiece and eliminates the positioning error at the reattachment. The contact measurement using a touch probe is one of the OMM. However, this measurement requires decision of measuring points and paths in order to conduct the measurement using touch probe. Currently, measuring paths of the touch probe is generated by an operator who can recognize the shape of the workpiece, determine the measuring regions and the measuring points. The objective of this study is automatically generation of the NC program to instruct OMM using a touch probe. This study realizes automatically generation of the NC program to instruct OMM by focusing on recognition of the geometrical property of the product shape based on the removal volume and determination of the measuring points and paths.