Abstract: A mechanism for providing computerized control of both a rip and a crosscut fence for a table saw is disclosed. The device is adapted to utilize the output of an optimization program to accurately and economically permit the user to cut sheet stock. A personal computer is utilized to determine an optimum cutting pattern in a preselected series of patterns for a preselected inventory of finished pieces. The computer arranges the finished pieces on the inventory of sheets and displays graphically the intended output to the user. The user selects the cuts in the provided sequence and the personal computer through the use of mechanical interfaces accurately positions the fences of the table saw for each successive cut. The mechanism may also allow manual entry of selected cuts by the user.