A method of measuring a workpiece to be measured by using a coordinate measuring machine, the method including the steps: - placing the workpiece to be measured in a working space of the coordinate measuring machine, - capturing at least one capture image of the workpiece to be measured while the workpiece is placed in the working space, - accessing assignment information on assignments of at least some of a plurality of representations of workpieces to images of workpieces, the plurality of representations being stored in a database (35; 45), wherein each of the at least some of the plurality of representations has been assigned to at least one image of a workpiece based on a selection result of a selection that was made earlier resulting in a corresponding part of the assignment information, - automatically identifying possibly matching representations that are possibly matching the workpiece to be measured from the plurality of representations stored in the database (35; 45), - outputting output information about the possibly matching representations that have been identified, wherein the step of identifying the possibly matching representations includes - determining at least one similar image that is similar to the at least one capture image and - identifying at least one representation of a workpiece, which at least one representation has been assigned to the at least one similar image according to the assignment information, as at least one assigned possibly matching representation and - identifying at least one similar possibly matching representation that is identified as similar to the at least one assigned possibly matching representation based on predefined similarity information, wherein the possibly matching representations comprise the at least one assigned possibly matching representation and the at least one similar possibly matching representation. - placing the workpiece to be measured in a working space of the coordinate measuring machine, - capturing at least one capture image of the workpiece to be measured while the workpiece is placed in the working space, - accessing assignment information on assignments of at least some of a plurality of representations of workpieces to images of workpieces, the plurality of representations being stored in a database (35; 45), wherein each of the at least some of the plurality of representations has been assigned to at least one image of a workpiece based on a selection result of a selection that was made earlier resulting in a corresponding part of the assignment information, - automatically identifying possibly matching representations that are possibly matching the workpiece to be measured from the plurality of representations stored in the database (35; 45), - outputting output information about the possibly matching representations that have been identified, wherein the step of identifying the possibly matching representations includes - determining at least one similar image that is similar to the at least one capture image and - identifying at least one representation of a workpiece, which at least one representation has been assigned to the at least one similar image according to the assignment information, as at least one assigned possibly matching representation and - identifying at least one similar possibly matching representation that is identified as similar to the at least one assigned possibly matching representation based on predefined similarity information, - determining at least one similar image that is similar to the at least one capture image and - identifying at least one representation of a workpiece, which at least one representation has been assigned to the at least one similar image according to the assignment information, as at least one assigned possibly matching representation and - identifying at least one similar possibly matching representation that is identified as similar to the at least one assigned possibly matching representation based on predefined similarity information, wherein the possibly matching representations comprise the at least one assigned possibly matching representation and the at least one similar possibly matching representation.