1. Draw an arbitrary 3D polyline within the raster image area. Use the CAD command (3DPOLY) for this.
2. Run the Polyline Editor command.
3. Click on the previously drawn 3D polyline and its name will appear in the 3D Polyline editor dialogue box.
4. Then right-click on the name of the 3D polyline and select the Raise to surface elevation (add vertex on surface break) option.
5. Select a surface to drape the 3D polyline to. If you want to drape onto a surface that is not listed in this dialogue box, click on the folder icon and define a drawing.
6. Click on the Terrain_01@Surface_01.dwg and click OK.
3D polyline result with surface heights applied to 3D polyline vertices where the surface is stored in an external reference file: