Using the accurate methods and tools for evaluation of function in different areas is of great importance. In recent years, much more studies have been done on the nature and methodology of function evaluation in organizations and its improvement. This study aimed to evaluate and improve the function of production line through computer simulation in one of the iron foundries in Iran. For this purpose, at first data has been gathered on the basis of timing with chronometer for each one of the production line machineries and using this data, distribution functions governing the activity cycle of each one of these machineries have been determined; and then, using the required gathered data for computer simulation (taking the advantage of "ED" simulation software), a model was simulated to introduce the current situation of production line and the validity of simulated model was measured on the basis of production rate. And then, considering the criteria such as the production rate, average waiting time, machine utilization coefficient, production yield, production cost, production income and the production time production line function was evaluated. Finally, applying amendment changes on the simulated model improved model was offered.