frm_thread.png
frm_thread.svg

In SolidWorks, there is the feature "Stud Wizard" which is about creating a thread on a cylinder. In this feature, there are 2 types of behavior:

Also, an undercut can be defined on such a thread.

frm_thread_shaft.png
frm_thread_shaft.svg