transport screw for objects

In SolidWorks we model transport screws for bottles. For round objects, the screw function in Solidworks works.
For rectangular shapes with rounded corners unfortunately not.

Does anyone have a solution for this, possibly using an iterative method to determine the screw shape ?

Edu ​​​​​​​