using a tool controlled by a photoelectric scanning device