how to BRepOffsetAPI_MakePipeShell with a spine and a guideline like autocad

Hello everyone. I am using occ7.4.0. I want to achieve an effect of autocad. That is, according to a spine and a guideline and multiple closed wires to carry out the dual-track sweep modeling. As shown in the figure. I don't know if you have any ideas. Thank you all.