The attached file may be of some use. It expects the section line to be a simple line entity. It can handle either 3dpolylines or lwpolylines, but it assumes that all vertices of a 3dpolyline have the same elevation, which it obtains from the first vertex. Also, it is not equipped to handle splined polylines, and will yield inaccurate results if it encounters them. I did not include a vertical exageration factor, but that would be easy to add.