I made a point of a rectangle by creating an adaptive point, taking a reference point on it, and then moving that point. And repeat.
Then I made a rectangle by connecting the line to the reference line.
So I made this
You could try to place voids at the start and end of your component, and control the void with a angle parameter, bound to to a line or plane.
Or you place a 3 point on the reference point and control the angle between the “point planes”.
-> adaptive point-> reference point (rotation control)-> reference point( angle)-> profil