Selecting the Reference Line Using Two Points

Use this function to set an element in the direction of a reference line specified by clicking two points. The direction of the selected line determines the angle.