The results of finite-element modeling of forming of a part such as a frame of a plane lamp in the course of machining as a result of redistribution of residual stress formed at previous fabrication stages are given in work [20]. The distribution of residual stress in a workpiece is defined by flat methods on technological samples. The received residual stress is attached to corresponding final elements of a model by means of a special program. Modeling of processing consisted in consecutive removal of metal layers.