1. A method for smoothing a polylines in an NC program, comprising: transmitting data records to a geometrical filter unit, the data records including coordinates of points, which, connected by linear segments, represent an original polyline; and smoothing the original polyline by shifting the coordinates of points in the geometrical filter unit so that a resulting polyline made up of points is smoothed as compared to the original polyline.