attach mode
Attach mode locks points to a user-defined part (such as endpoint or midpoint) of the entity under the cursor.
Click the Attach button on the lower right corner of the screen to turn it off and on. Right click the button to select the options.