# Wrong rebar hook orientation

**URL:** <https://forum.dynamobim.com/t/wrong-rebar-hook-orientation/81876>\
**Category:** Revit\
**Created:** [October 8, 2022, 8:31pm UTC](https://forum.dynamobim.com/t/wrong-rebar-hook-orientation/81876 "2022-10-08T20:31:01Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![REDO10](https://avatars.discourse-cdn.com/v4/letter/r/7cd45c/32.png) [@REDO10](https://forum.dynamobim.com/u/REDO10)\
**Post date:** [October 8, 2022, 8:31pm UTC](https://forum.dynamobim.com/t/wrong-rebar-hook-orientation/81876/1 "2022-10-08T20:31:01Z")

</div>

Hi everyone

I dont find what’s missing in my script to get a wrong rebar hook orientation!!?  
I tried all cases of hook orientation but I still get hook in same direction?? (Please check below my script and rebar generated in Revit)

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

 ![hook](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/a/c/ace2939b1d57ae8bf58134c325fb623b3e245f54.png)

Thanks.

---

<div class="post-metadata">

**Author:** ![REDO10](https://avatars.discourse-cdn.com/v4/letter/r/7cd45c/32.png) [@REDO10](https://forum.dynamobim.com/u/REDO10)\
**Post date:** [October 9, 2022, 5:02pm UTC](https://forum.dynamobim.com/t/wrong-rebar-hook-orientation/81876/2 "2022-10-09T17:02:21Z")

</div>

@Kulkul

any idea?

is that related to my vector in rebar container?

Thanks.

---

<div class="post-metadata">

**Author:** ![REDO10](https://avatars.discourse-cdn.com/v4/letter/r/7cd45c/32.png) [@REDO10](https://forum.dynamobim.com/u/REDO10)\
**Post date:** [October 10, 2022, 8:23pm UTC](https://forum.dynamobim.com/t/wrong-rebar-hook-orientation/81876/3 "2022-10-10T20:23:56Z")

</div>

No one have an idea what’s missing in my script and why I get a reversed hook???

---

<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:** [October 12, 2022, 9:06am UTC](https://forum.dynamobim.com/t/wrong-rebar-hook-orientation/81876/4 "2022-10-12T09:06:01Z")

</div>

Hola Amigo @REDO10 como estas? I see that you are a little stressed, relax you are in the right place, I am not very familiar with the Rebars, but apparently they have parameters that control the curves at the beginning and at the end, maybe Element.SetParameterByName will work:

 ![REBARS](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/3/6/36c8ffaf8957a553f45e7de8fea5faf0a85a32d6.jpeg)

---

<div class="post-metadata">

**Author:** ![REDO10](https://avatars.discourse-cdn.com/v4/letter/r/7cd45c/32.png) [@REDO10](https://forum.dynamobim.com/u/REDO10)\
**Post date:** [October 12, 2022, 1:48pm UTC](https://forum.dynamobim.com/t/wrong-rebar-hook-orientation/81876/5 "2022-10-12T13:48:33Z")

</div>

@Kulkul  
Hola amigo @gilberto.arechigaiba eres agradable 😉

I’m not stressed… I’m pretty annoyed because I’ve tried a few tricks but it doesn’t work!!?

I also tried your idea but it doesn’t work…in both cases if I set “Hook Rotation At Start” or “End” I get only the inner hook rotated and the outer hook which I want rotate it’s still no changed

I think there’s a problem with the node **RebarContainer.ByCurve** or the vector direction but I can’t exactly determine the problem

Thanks.

---

<div class="post-metadata">

**Author:** ![Omar.Elwan](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/omar.elwan/32/127651_2.png) [@Omar.Elwan](https://forum.dynamobim.com/u/Omar.Elwan)\
**Post date:** [October 12, 2022, 3:13pm UTC](https://forum.dynamobim.com/t/wrong-rebar-hook-orientation/81876/6 "2022-10-12T15:13:15Z")

</div>

Can you send me the Revit model and your graph?

---

<div class="post-metadata">

**Author:** ![REDO10](https://avatars.discourse-cdn.com/v4/letter/r/7cd45c/32.png) [@REDO10](https://forum.dynamobim.com/u/REDO10)\
**Post date:** [October 12, 2022, 4:40pm UTC](https://forum.dynamobim.com/t/wrong-rebar-hook-orientation/81876/7 "2022-10-12T16:40:29Z")

</div>

@Omar.Elwan

Please check below my script and my Revit model

[ferraillage radial\_nappe inf.dyn](https://forum.dynamobim.com/uploads/short-url/nr9PqPbVMFlTWzbTeiEU8UajLvL.dyn) (286.7 KB)

[slab.rvt](https://forum.dynamobim.com/uploads/short-url/8unagmJqzqeyHZCjd4gMvyInr3m.rvt) (2.0 MB)

Thanks.

---

<div class="post-metadata">

**Author:** ![Omar.Elwan](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/omar.elwan/32/127651_2.png) [@Omar.Elwan](https://forum.dynamobim.com/u/Omar.Elwan)\
**Post date:** [October 13, 2022, 12:53am UTC](https://forum.dynamobim.com/t/wrong-rebar-hook-orientation/81876/8 "2022-10-13T00:53:38Z")

</div>

Hello, Redo,  
I have run your script on the Revit model you have sent and everything makes sense.  
You want both ends to be oriented to Up, right?  
It works fine for me. I didn’t interfere with your script.

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

---

<div class="post-metadata">

**Author:** ![REDO10](https://avatars.discourse-cdn.com/v4/letter/r/7cd45c/32.png) [@REDO10](https://forum.dynamobim.com/u/REDO10)\
**Post date:** [October 13, 2022, 6:41am UTC](https://forum.dynamobim.com/t/wrong-rebar-hook-orientation/81876/9 "2022-10-13T06:41:27Z")

</div>

@Omar.Elwan

So where is the problem for me??  
Why I get the outer hook reversed?..there are some things that go wrong in Revit’s settings ?  
I’m so confused!!!

Thanks.

---

<div class="post-metadata">

**Author:** ![MJB-online](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/mjb-online/32/24884_2.png) [@MJB-online](https://forum.dynamobim.com/u/MJB-online)\
**Post date:** [October 13, 2022, 8:22am UTC](https://forum.dynamobim.com/t/wrong-rebar-hook-orientation/81876/10 "2022-10-13T08:22:55Z")

</div>

Hi @REDO10,

Maybe an update of the package to the latest version?

---

<div class="post-metadata">

**Author:** ![REDO10](https://avatars.discourse-cdn.com/v4/letter/r/7cd45c/32.png) [@REDO10](https://forum.dynamobim.com/u/REDO10)\
**Post date:** [October 13, 2022, 9:16am UTC](https://forum.dynamobim.com/t/wrong-rebar-hook-orientation/81876/11 "2022-10-13T09:16:15Z")

</div>

@MJB-online

All packages I used are updated

Thanks.

---

<div class="post-metadata">

**Author:** ![REDO10](https://avatars.discourse-cdn.com/v4/letter/r/7cd45c/32.png) [@REDO10](https://forum.dynamobim.com/u/REDO10)\
**Post date:** [October 13, 2022, 11:50am UTC](https://forum.dynamobim.com/t/wrong-rebar-hook-orientation/81876/12 "2022-10-13T11:50:58Z")

</div>

Hi @Omar.Elwan

Can you please tell me what’s your version of **Dynamo for Rebar** package ? mine is the latest **2.02**

---

<div class="post-metadata">

**Author:** ![Omar.Elwan](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/omar.elwan/32/127651_2.png) [@Omar.Elwan](https://forum.dynamobim.com/u/Omar.Elwan)\
**Post date:** [October 13, 2022, 2:43pm UTC](https://forum.dynamobim.com/t/wrong-rebar-hook-orientation/81876/13 "2022-10-13T14:43:32Z")

</div>

I use the same version too, 2.02.  
Its really strange.  
What type of rebar do you use? Sometimes it is hard to model big sizes due to some limitations.

---

<div class="post-metadata">

**Author:** ![REDO10](https://avatars.discourse-cdn.com/v4/letter/r/7cd45c/32.png) [@REDO10](https://forum.dynamobim.com/u/REDO10)\
**Post date:** [October 13, 2022, 5:10pm UTC](https://forum.dynamobim.com/t/wrong-rebar-hook-orientation/81876/14 "2022-10-13T17:10:42Z")

</div>

@Omar.Elwan @Kulkul @jacob.small @GavinNicholls

This script is frustraing and does not want to run properly

I tried a new script for radial rebars only to avoid interference with tangentiel rebars but it work only when I disconnect **Vector.Reverse** node from curves vector and connect the last one directly to Rebar container (see the image below)

 ![container](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/8/b/8b8198357e645ef3dd078dfd43112dbc018176a3.png)

Is there another way to create rebar container without using Dynamo for Rebar package?

Thanks.

---

<div class="post-metadata">

**Author:** ![REDO10](https://avatars.discourse-cdn.com/v4/letter/r/7cd45c/32.png) [@REDO10](https://forum.dynamobim.com/u/REDO10)\
**Post date:** [October 13, 2022, 6:37pm UTC](https://forum.dynamobim.com/t/wrong-rebar-hook-orientation/81876/15 "2022-10-13T18:37:40Z")

</div>

does my issue is related to this post [Rebar container not working](https://forum.dynamobim.com/t/rebar-container-not-working/24106/6) ?

Thanks.

---

<div class="post-metadata">

**Author:** ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)\
**Post date:** [October 13, 2022, 9:11pm UTC](https://forum.dynamobim.com/t/wrong-rebar-hook-orientation/81876/16 "2022-10-13T21:11:00Z")

</div>

I’m not a structural engineer, and rebar tools aren’t my area of expertise, so the issue at hand is somewhat foreign to me without a graph and model to reproduce the issue.

---

<div class="post-metadata">

**Author:** ![REDO10](https://avatars.discourse-cdn.com/v4/letter/r/7cd45c/32.png) [@REDO10](https://forum.dynamobim.com/u/REDO10)\
**Post date:** [October 13, 2022, 9:26pm UTC](https://forum.dynamobim.com/t/wrong-rebar-hook-orientation/81876/17 "2022-10-13T21:26:53Z")

</div>

@jacob.small

If you take a look above I attached my graph and my Revit file so you can check them

Thanks.

---

<div class="post-metadata">

**Author:** ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)\
**Post date:** [October 13, 2022, 9:28pm UTC](https://forum.dynamobim.com/t/wrong-rebar-hook-orientation/81876/18 "2022-10-13T21:28:59Z")

</div>

Ah. You indicated a new script, so I figured some alterations had occurred. I’ll try and open this up later tonight, but no promises just yet (the day job stuff has to get finished first).

---

<div class="post-metadata">

**Author:** ![Omar.Elwan](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/omar.elwan/32/127651_2.png) [@Omar.Elwan](https://forum.dynamobim.com/u/Omar.Elwan)\
**Post date:** [October 14, 2022, 12:25am UTC](https://forum.dynamobim.com/t/wrong-rebar-hook-orientation/81876/19 "2022-10-14T00:25:57Z")

</div>

Sorry but what does the error state? I cant read French! If you also can expand the error message, it will be better.
