Solid by Sweep (Extrusion) using two shapes or profiles and 1 alignment line

I have 

- two polygons (the two profiles for slabtrack), profile A and B have slight differences 
- 1 3D alignment line (the white line) 

I want to "sweep" from profile A to profile B along the alignment line 
second image is the expected outcome. 

how to achieve this in GC?