Nc programming of cnc machine tools