Measurement of parts