A system for generating a path to be followed by a robot when said robot is to perform a process on a workpiece, said system comprising: a computing device having therein program code for operating said robot and obtaining information related to said workpiece; and a vision system for scanning said workpiece to obtain images thereof, said images provided to said computing device, said computing device processing said images to obtain geometric information about said workpiece that said computing device can use in combination with reference process parameters stored in said computing device to generate program code for a path to be followed by said robot to perform said process on said workpiece, said program code including motion instructions to be followed by said robot to perform said process on said workpiece, said computing device optimizing said program code for said path and motion instructions to be followed by said robot to perform said process on said workpiece, the system further comprising: reference geometric information about said workpiece that is used by said computing device to validate said geometric information about said workpiece obtained by processing said images from said vision system; reference robot path information associated to the reference geometric information that is used by said computing device and along with said reference geometric information to calculate, when generating said path to be followed by said robot in performing said process on said workpiece, an offset for said reference robot path only in case of geometric differences between the geometric information and the reference geometric information, said robot path corresponding to the reference robot path associated to the reference geometric information in absence of said geometric differences between the geometric information and the reference geometric information. a computing device having therein program code for operating said robot and obtaining information related to said workpiece; and a vision system for scanning said workpiece to obtain images thereof, said images provided to said computing device, said computing device processing said images to obtain geometric information about said workpiece that said computing device can use in combination with reference process parameters stored in said computing device to generate program code for a path to be followed by said robot to perform said process on said workpiece, said program code including motion instructions to be followed by said robot to perform said process on said workpiece, said computing device optimizing said program code for said path and motion instructions to be followed by said robot to perform said process on said workpiece, the system further comprising: reference geometric information about said workpiece that is used by said computing device to validate said geometric information about said workpiece obtained by processing said images from said vision system; reference robot path information associated to the reference geometric information that is used by said computing device and along with said reference geometric information to calculate, when generating said path to be followed by said robot in performing said process on said workpiece, an offset for said reference robot path only in case of geometric differences between the geometric information and the reference geometric information, said robot path corresponding to the reference robot path associated to the reference geometric information in absence of said geometric differences between the geometric information and the reference geometric information. reference geometric information about said workpiece that is used by said computing device to validate said geometric information about said workpiece obtained by processing said images from said vision system; reference robot path information associated to the reference geometric information that is used by said computing device and along with said reference geometric information to calculate, when generating said path to be followed by said robot in performing said process on said workpiece, an offset for said reference robot path only in case of geometric differences between the geometric information and the reference geometric information, said robot path corresponding to the reference robot path associated to the reference geometric information in absence of said geometric differences between the geometric information and the reference geometric information.