Patent ID: 8380341

Claim:
An NC program generating device that extracts shaping sites, which are process areas of a workpiece, based on three-dimensional geometrical data of the workpiece that is unprocessed and three-dimensional geometrical data of the workpiece that is processed, and generates an NC program in correspondence with the shaping sites that are extracted, comprising: a process attribute information setting unit that sets process attribute information that is used for generation of the NC program and includes information of a process operation that can be used to process the workpiece on a processing machine, in the three-dimensional geometrical data of the workpiece that is processed, wherein: the process attribute information setting unit sets the process attribute information of the workpiece, based on related information of the process operation that can be used to process the workpiece on the processing machine and a characteristic, a position, and a direction of a shaping site in a three-dimensional shape of the workpiece that is processed, the shaping site being configurable as the process attribute information for the workpiece on the processing machine, and when setting up the process attribute information of the workpiece, feasible items and infeasible items of the process attribute information are extracted by use of at least one of information regarding a position of a processing tool included in the processing machine, information regarding an axial direction of a rotation axis around which the workpiece is rotated, information regarding an axial direction of a rotation axis around which the working tool is rotated, and information regarding a placement position of the workpiece.