The present invention relates to a device (1) for measurement of a profile of a body part, the device (1) comprising an elongated ruler (2) with markers (4), and a sensor (5) for measurement of data relating to a position and/or an orientation of the sensor (5) with respect to the ruler (2),, wherein the sensor (5) is slidably arranged on the ruler (2) and wherein the sensor (5) is in contact or engagement with the ruler (2).