This video demonstrates how to create a corridor in Civil 3D starting from a polyline 3d using Python. Source: Autodesk