calculating hole coordinates and thread dimensions