it is necessary to see the type of 3D printing targeted, but in the absence of a thread function it is possible to use the swept boss function with a trapezoidal profile following a helical curve (helix). You will find tutorials on youtube if needed.