This is tutorial in sweep feature using a twist along the path option.
We have our profile and our path.
We activate our sweep feature and we select square as a profile and a straight line as our path.
Under the options we are going to select twist along the path.
When we select this we have another option to chose between degrees radians and turns.
I will pick turns for this tutorials and enter the number of 6
Than we get a complex part like this which would be hard to make with any other feature.