# curvy block Civil 3D

**URL:** <https://forum.dynamobim.com/t/curvy-block-civil-3d/89914>\
**Category:** Civil 3D\
**Tags:** dynamo\
**Created:** [May 23, 2023, 12:43am UTC](https://forum.dynamobim.com/t/curvy-block-civil-3d/89914 "2023-05-23T00:43:50Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![edcanonb](https://avatars.discourse-cdn.com/v4/letter/e/48db29/32.png) [@edcanonb](https://forum.dynamobim.com/u/edcanonb)\
**Post date:** [May 23, 2023, 12:43am UTC](https://forum.dynamobim.com/t/curvy-block-civil-3d/89914/1 "2023-05-23T00:43:50Z")

</div>

Thank you very much for your help, I have created a script to insert barriers over a corridor from a block, however I have two problems now. The first is that the barriers go along certain abscissas and not along the entire corridor, and the second is that it does not map them on curves. Any suggestions? Thank you very much regards.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/5/c/5cb9ac1c3336b803fd3d7e70a92509653031b963.png)

---

<div class="post-metadata">

**Author:** ![patrick.ericson](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/patrick.ericson/32/121411_2.png) [@patrick.ericson](https://forum.dynamobim.com/u/patrick.ericson)\
**Post date:** [May 29, 2023, 5:37am UTC](https://forum.dynamobim.com/t/curvy-block-civil-3d/89914/2 "2023-05-29T05:37:46Z")

</div>

Can you show some examples where it doesn’t work? Because the picture look correct to me.  
Also if you have some of your work that can be uploaded.

---

<div class="post-metadata">

**Author:** ![edcanonb](https://avatars.discourse-cdn.com/v4/letter/e/48db29/32.png) [@edcanonb](https://forum.dynamobim.com/u/edcanonb)\
**Post date:** [May 30, 2023, 1:01am UTC](https://forum.dynamobim.com/t/curvy-block-civil-3d/89914/3 "2023-05-30T01:01:30Z")

</div>

Thank you very much for answering. I have done it but there are still some failures, I can’t rotate the elements to align them to the road.

[Señales.dyn](https://forum.dynamobim.com/uploads/short-url/dAT31LisfAC6RXSQSm6WNtHX9Gp.dyn) (32.7 KB)

---

<div class="post-metadata">

**Author:** ![patrick.ericson](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/patrick.ericson/32/121411_2.png) [@patrick.ericson](https://forum.dynamobim.com/u/patrick.ericson)\
**Post date:** [May 30, 2023, 9:19am UTC](https://forum.dynamobim.com/t/curvy-block-civil-3d/89914/4 "2023-05-30T09:19:40Z")

</div>

Sorry, the graph you added was made for Revit and can’t be opened in Civil 3D.  
I thought the topic was meant for Civil 3D when you tagged Civil.

---

<div class="post-metadata">

**Author:** ![edcanonb](https://avatars.discourse-cdn.com/v4/letter/e/48db29/32.png) [@edcanonb](https://forum.dynamobim.com/u/edcanonb)\
**Post date:** [May 30, 2023, 10:40am UTC](https://forum.dynamobim.com/t/curvy-block-civil-3d/89914/5 "2023-05-30T10:40:29Z")

</div>

Hello, I’m sorry I made a mistake in sending the file, it’s this, thank you very much

[Posicion\_bloques\_dos\_lados.dyn](https://forum.dynamobim.com/uploads/short-url/xkqcR6cFx90bQmItCUWBIuDsXmX.dyn) (119 KB)

---

<div class="post-metadata">

**Author:** ![patrick.ericson](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/patrick.ericson/32/121411_2.png) [@patrick.ericson](https://forum.dynamobim.com/u/patrick.ericson)\
**Post date:** [June 12, 2023, 12:00pm UTC](https://forum.dynamobim.com/t/curvy-block-civil-3d/89914/6 "2023-06-12T12:00:36Z")

</div>

Hi  
Sorry for late update. Any progress yet?  
I did some testing but I didn’t had the same issue as you wrote. Not so fancy corridor and block but I can insert the block at 1m and 20m interval and it works fine in curve (see the white objects along the redlines

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/6/d/6d4aef869676962953b2ed1c2d85cda7ce72e361.png)

---

<div class="post-metadata">

**Author:** ![edcanonb](https://avatars.discourse-cdn.com/v4/letter/e/48db29/32.png) [@edcanonb](https://forum.dynamobim.com/u/edcanonb)\
**Post date:** [June 12, 2023, 2:06pm UTC](https://forum.dynamobim.com/t/curvy-block-civil-3d/89914/7 "2023-06-12T14:06:02Z")

</div>

Hello, thank you very much for your answer but look, I tried it and nothing shows you the code, I don’t know if I’m missing something. Thank you very much for your kind help.

[drh.dyn](https://forum.dynamobim.com/uploads/short-url/5sVjDs2bfiFcylM0aBWdobqqee4.dyn) (69.8 KB)

[drh\_corredor.dwg](https://forum.dynamobim.com/uploads/short-url/43ByuP3fE9DeZwd5yuQVOfx8CFf.dwg) (1.68 MB)

---

<div class="post-metadata">

**Author:** ![edcanonb](https://avatars.discourse-cdn.com/v4/letter/e/48db29/32.png) [@edcanonb](https://forum.dynamobim.com/u/edcanonb)\
**Post date:** [June 12, 2023, 2:08pm UTC](https://forum.dynamobim.com/t/curvy-block-civil-3d/89914/8 "2023-06-12T14:08:50Z")

</div>

that’s how it is in curves

 ![image.png](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/b/a/ba1d7cbcf9d9d54fd4482ee016ee9d1c6c02cab7.png)

---

<div class="post-metadata">

**Author:** ![gilberto.arechigaiba](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/gilberto.arechigaiba/32/204980_2.png) [@gilberto.arechigaiba](https://forum.dynamobim.com/u/gilberto.arechigaiba)\
**Post date:** [June 13, 2023, 10:03am UTC](https://forum.dynamobim.com/t/curvy-block-civil-3d/89914/9 "2023-06-13T10:03:03Z")

</div>

Hola amigo @edcanonb buenas. youre corridor is a polycurve made of multiples curves of diferent sizes, so you have to:

1. Offset your Polycurve to each side.
2. Get the curves of the Polycurve, Offset these Lines.
3. Ask the start or the end points of these curves.
4. Create a New Polycurve and create Coordinate System at segment length
5. Finally you just instert the block in these Coordinate System (For one of the sides you have to rotate 180 degrees the coordinate system).  
Is not perfect but is better i think, any way the rigth way to do this is create an assembly.  
 ![Curvy Blocks](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/8/8/883df1f3a3da1950bc06754be32ed0b6c4bac0d4.jpeg)

---

<div class="post-metadata">

**Author:** ![gilberto.arechigaiba](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/gilberto.arechigaiba/32/204980_2.png) [@gilberto.arechigaiba](https://forum.dynamobim.com/u/gilberto.arechigaiba)\
**Post date:** [June 13, 2023, 10:17am UTC](https://forum.dynamobim.com/t/curvy-block-civil-3d/89914/10 "2023-06-13T10:17:49Z")

</div>

Update, Works better if you use NurbsCurve.byControl Points, instead Polycurve by Points.

 ![Curvy Blocks Nurbs Curve](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/9/b/9b4cd51afd861e7e30fbe2cd72daa54833a23964.jpeg)

---

<div class="post-metadata">

**Author:** ![edcanonb](https://avatars.discourse-cdn.com/v4/letter/e/48db29/32.png) [@edcanonb](https://forum.dynamobim.com/u/edcanonb)\
**Post date:** [June 13, 2023, 8:36pm UTC](https://forum.dynamobim.com/t/curvy-block-civil-3d/89914/11 "2023-06-13T20:36:04Z")

</div>

Hello friend, good afternoon, look, this is what I’ve got from the progress of the code, I don’t know how you see it. Thank you so much

[drh.dyn](https://forum.dynamobim.com/uploads/short-url/5sVjDs2bfiFcylM0aBWdobqqee4.dyn) (69.8 KB)

[drh\_corredor.dwg](https://forum.dynamobim.com/uploads/short-url/43ByuP3fE9DeZwd5yuQVOfx8CFf.dwg) (1.68 MB)

---

<div class="post-metadata">

**Author:** ![edcanonb](https://avatars.discourse-cdn.com/v4/letter/e/48db29/32.png) [@edcanonb](https://forum.dynamobim.com/u/edcanonb)\
**Post date:** [June 13, 2023, 8:37pm UTC](https://forum.dynamobim.com/t/curvy-block-civil-3d/89914/12 "2023-06-13T20:37:52Z")

</div>

Thank you so much I’ll check it out right now
