Profile on 3D CAD line as path

This post might point you in the right direction: