Patent ID: 8185225

Claim:
A program creation apparatus that creates, based on shape data of a machining subject and dimensional tolerance data of the shape data, an NC machining program reflecting the dimensional tolerance data on the shape data, the program creation apparatus comprising: a memory which stores a plurality of units; and a processor which executes the stored plurality of units, the plurality of units comprising: a machining target dimension calculation unit that calculates machining target dimensions of the machining subject based on the shape data and the dimensional tolerance data; a shape data deform processing unit that sets post-movement positions of graphic elements included in the shape data based on the machining target dimensions calculated by the machining target dimension calculation unit and the shape data so that a dimension between the graphic elements conforms to the corresponding machining target dimension; and a machining program creation unit that creates an NC machining program by using the shape data and the post-movement position of each graphic element set by the shape data deform processing unit, wherein: the dimensional tolerance data includes positional movement information about how to move the graphic elements, the shape data deform processing unit sets the post-movement positions of the graphic elements based on the positional movement information, and one of the graphic elements comprises at least two sub-elements, each corresponding to a respective surface and for which the post-movement positions are set based on an adjustment mode which is the positional movement information.