# Error create rebar.. :(!

**URL:** <https://forum.dynamobim.com/t/error-create-rebar/99309>\
**Category:** Revit\
**Tags:** revit, python, dynamo\
**Created:** [March 21, 2024, 7:53pm UTC](https://forum.dynamobim.com/t/error-create-rebar/99309 "2024-03-21T19:53:09Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![AM3D.BIM.STUDIO](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/am3d.bim.studio/32/127441_2.png) [@AM3D.BIM.STUDIO](https://forum.dynamobim.com/u/AM3D.BIM.STUDIO)\
**Post date:** [March 21, 2024, 7:53pm UTC](https://forum.dynamobim.com/t/error-create-rebar/99309/1 "2024-03-21T19:53:10Z")

</div>

Very Good days.  
I have the following problem.  
I am trying to create reinforcements from a polycurve, this polycurve is often irregular in shape due to the bends and directions it has as you can see in the dynamo image, but in other cases it does have almost homogeneous shapes, but regardless of what shape I want to create reinforcements from my polycurve, but I get an error in the node and I don’t know how to solve it, I have reviewed the curve process believing that it could be a vector, a direction or something that could affect it, but everything is correct , the sequence of the polycurve is in an orderly manner but I still don’t know why the node fails.  
If it happened to someone and has solved it, please could you share your suggestions or perhaps another node that allows me to achieve my goal, if I code paython I would be very grateful!!

 ![ERROR AL CREAR ARMADURAS](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/9/2/92c2ff03c59f2886588891d630694f8ba4d59363.png)  
 ![ERROR AL CREAR ARMADURAS_2](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/f/d/fde233c0cc1592748be7a53b5e7298fe0935d74e.png)

---

<div class="post-metadata">

**Author:** ![jonah.peeleN2575](https://avatars.discourse-cdn.com/v4/letter/j/53a042/32.png) [@jonah.peeleN2575](https://forum.dynamobim.com/u/jonah.peeleN2575)\
**Post date:** [March 21, 2024, 9:37pm UTC](https://forum.dynamobim.com/t/error-create-rebar/99309/2 "2024-03-21T21:37:27Z")

</div>

Are the bottom hooks drawn in different plane than the top hooks? If I remember correctly Revit will only let hooks be drawn in a single plane. (Not a dynamo issue, this is an actual Revit limitation.)

---

<div class="post-metadata">

**Author:** ![Alisadeq](https://avatars.discourse-cdn.com/v4/letter/a/dc4da7/32.png) [@Alisadeq](https://forum.dynamobim.com/u/Alisadeq)\
**Post date:** [March 22, 2024, 2:39am UTC](https://forum.dynamobim.com/t/error-create-rebar/99309/3 "2024-03-22T02:39:51Z")

</div>

Conver polycurve to curve and use rebar by curves

---

<div class="post-metadata">

**Author:** ![AM3D.BIM.STUDIO](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/am3d.bim.studio/32/127441_2.png) [@AM3D.BIM.STUDIO](https://forum.dynamobim.com/u/AM3D.BIM.STUDIO)\
**Post date:** [March 22, 2024, 3:25am UTC](https://forum.dynamobim.com/t/error-create-rebar/99309/4 "2024-03-22T03:25:14Z")

</div>

but curves are created as independent rebar…!? 🥴

---

<div class="post-metadata">

**Author:** ![Alisadeq](https://avatars.discourse-cdn.com/v4/letter/a/dc4da7/32.png) [@Alisadeq](https://forum.dynamobim.com/u/Alisadeq)\
**Post date:** [March 22, 2024, 3:53am UTC](https://forum.dynamobim.com/t/error-create-rebar/99309/5 "2024-03-22T03:53:29Z")

</div>

With three lines he gave me one piece of rebar

 ![IMG_20240322_064832_296](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/a/2/a25d997fcb2d71a28b8cf649aaa7517e01b18309.jpeg)

---

<div class="post-metadata">

**Author:** ![AM3D.BIM.STUDIO](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/am3d.bim.studio/32/127441_2.png) [@AM3D.BIM.STUDIO](https://forum.dynamobim.com/u/AM3D.BIM.STUDIO)\
**Post date:** [March 22, 2024, 4:26am UTC](https://forum.dynamobim.com/t/error-create-rebar/99309/6 "2024-03-22T04:26:37Z")

</div>

Could you make a polycurve so that its lower leg goes in a direction opposite to the direction of the upper bend… please show me if it worked so I can rule out if it is an internal problem with my dynamo… ??

---

<div class="post-metadata">

**Author:** ![bharat.minocha](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/bharat.minocha/32/174524_2.png) [@bharat.minocha](https://forum.dynamobim.com/u/bharat.minocha)\
**Post date:** [March 22, 2024, 4:55am UTC](https://forum.dynamobim.com/t/error-create-rebar/99309/7 "2024-03-22T04:55:07Z")

</div>

Hi @AM3D.BIM.STUDIO that’s not the case not an internal problem or anything, could you please share the script and sample file it’ll be easier to resolve and recreate your exact issue also in case you wanna check how it works please do check this [Rebar.by curve node not working](https://forum.dynamobim.com/t/rebar-by-curve-node-not-working/98001)

Regards,  
BM

---

<div class="post-metadata">

**Author:** ![AM3D.BIM.STUDIO](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/am3d.bim.studio/32/127441_2.png) [@AM3D.BIM.STUDIO](https://forum.dynamobim.com/u/AM3D.BIM.STUDIO)\
**Post date:** [March 23, 2024, 7:04pm UTC](https://forum.dynamobim.com/t/error-create-rebar/99309/8 "2024-03-23T19:04:47Z")

</div>

Good day.  
Here I share the revit file and the DYNAMO file. Please, I require your support, this is already driving me crazy…  
[Error.rvt](https://forum.dynamobim.com/uploads/short-url/knAxqQhi0cReU8tpzVnh3XFbSJZ.rvt) (6.2 MB)  
[ERRO\_X.dyn](https://forum.dynamobim.com/uploads/short-url/kHhcEMcQEJxtZAMANt7h51d2cQz.dyn) (83.3 KB)

---

<div class="post-metadata">

**Author:** ![AM3D.BIM.STUDIO](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/am3d.bim.studio/32/127441_2.png) [@AM3D.BIM.STUDIO](https://forum.dynamobim.com/u/AM3D.BIM.STUDIO)\
**Post date:** [March 23, 2024, 9:57pm UTC](https://forum.dynamobim.com/t/error-create-rebar/99309/9 "2024-03-23T21:57:02Z")

</div>

I found the problem, and it is due to first joining curves 1 and 2 and obtaining the polycurve, request the end point and then create the upper bend, it seems that revit dynamo internally understands that by having a polycurve joined sequentially This final point still captures the normal, thus understanding the continuity and inheriting the normal of the polycurve, it is finally joining the polycurve with the final bend and it worked.

 ![SOLUCION ARMADURAS DESDE POLYCURVA](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/2/4/249b366129d834efbd6a939b3748d1769d172ef0.png)
