a digitalised model of the real environment is built up and calibrated including the robot and the workbench where the measurement will take place. The model can be also imported into the workspace and a special algorithm automatically calculates a path, with the desired resolution, on which the ultrasonic transducer will move. The calculation is based on the shape of the inspected part and as a result every point keeps at exactly the same distance from the related surface point.