# Creation of Beam through CurvesFromCADLayers onto Topography Surface

**URL:** <https://forum.dynamobim.com/t/creation-of-beam-through-curvesfromcadlayers-onto-topography-surface/78316>\
**Category:** Revit\
**Tags:** dynamo\
**Created:** [July 4, 2022, 12:18pm UTC](https://forum.dynamobim.com/t/creation-of-beam-through-curvesfromcadlayers-onto-topography-surface/78316 "2022-07-04T12:18:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Potato](https://avatars.discourse-cdn.com/v4/letter/p/a6a055/32.png) [@Potato](https://forum.dynamobim.com/u/Potato)\
**Post date:** [July 4, 2022, 12:18pm UTC](https://forum.dynamobim.com/t/creation-of-beam-through-curvesfromcadlayers-onto-topography-surface/78316/1 "2022-07-04T12:18:17Z")

</div>

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

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/6/e/6e0a0e0e396d2f2d85634947d2e1b5c1bc41f790.png)  
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

> [@Structural Framing by curve](https://forum.dynamobim.com/t/structural-framing-by-curve/43425):
>
> Hi guys, I search script to place slope curved beam on surface and get this link In video, author have mass wall. But i have surface of slope curved floor by modify sub elements. And i have a warning in this script. How can i solved this issue ? Thank in advanced.

> [@PolyCurves may be branching](https://forum.dynamobim.com/t/polycurves-may-be-branching/55343/8):
>
> Thanks alot Vladimir Just by adding code blocks with 1 og 8 connected to the Node Springs.Mesh.ToPolySurface seems to be solving the problem. The error in Topography.Mesh gets ignored. What Function does those numbers do?

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](https://forum.dynamobim.com/uploads/short-url/io7fxzwIyvzRbLxyLaiUiDr2L1Y.dyn) (18.7 KB)

[2. DrainageLayout\_CONST.2\_H&T\_Bryan2.dwg](https://forum.dynamobim.com/uploads/short-url/lAywZJBVHQedsFQpnjoF9aXWM7d.dwg) (33.7 KB)

Revit: [WeTransfer - Send Large Files & Share Photos Online - Up to 2GB Free](https://we.tl/t-7klCXiAYs4)

Update s of 5/7/2022

Followed the guide from [Toposurface to NurbsSurface – landarchBIM](https://landarchbim.com/2016/01/20/toposurface-to-nurbssurface/)

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/0/5/0547d05471a94e4eff1ef7859b48ae6ab6c472ad.png)  
Got to this point i guess, but still it wouldn’t run  
Not sure whats wrong  
Can anyone help?

Thanks.
