How do you think the first straight measuring ruler was made?
gravity might have been used. if you put a heavy object on a string, eventually when it stops swinging it forms a straight line. this might be how the first straight lines were made. i'm just guessing