Creation of Beam through CurvesFromCADLayers onto Topography Surface

Hi everyone.
I’m trying to create Beams directly from DWG file but for the Z value to follow a Topographical Surface.


I went around the forum and saw a few topics that helped.

I’m refering to this post that is suppose to allow the beam to adhere to the Topo Surface, but to no avail

I tried to add these two CodeBlock but for the second one regarding the Number of Thread, my Revit crashes with any number more than 2.

Can anyone help?

CurvesFromCADLayers to Revit Beam.dyn (18.7 KB)

2. DrainageLayout_CONST.2_H&T_Bryan2.dwg (33.7 KB)

Revit: WeTransfer - Send Large Files & Share Photos Online - Up to 2GB Free

Update s of 5/7/2022

Followed the guide from Toposurface to NurbsSurface – landarchBIM


Got to this point i guess, but still it wouldn’t run
Not sure whats wrong
Can anyone help?

Thanks.