# Family rotation

**URL:** <https://forum.dynamobim.com/t/family-rotation/3803>\
**Category:** Packages\
**Created:** [April 21, 2016, 12:13am UTC](https://forum.dynamobim.com/t/family-rotation/3803 "2016-04-21T00:13:22Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cesare\_Caoduro3](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/cesare_caoduro3/32/9974_2.png) [@Cesare\_Caoduro3](https://forum.dynamobim.com/u/Cesare_Caoduro3)\
**Post date:** [April 21, 2016, 12:13am UTC](https://forum.dynamobim.com/t/family-rotation/3803/1 "2016-04-21T00:13:22Z")

</div>

Good morning to all,

I’m struggling to find the correct rotation for a family.

Basically in my workflow I’m placing automatically hanger along duct, piping and cable-tray. Everything is perfect but when I come to the rotation, I can’t find the correct angle. I tried to find the normal, to the axis line and calculate the angle between the normal and the x axis, then I tried to find the angle between the line and x axis, then the same between the Y axis but the result is that seems that dynamo is always calculating the minimum angle between two vectors.

Is there someone that can advise me how to find the correct rotation to be sure that my support is perpendicular to the axis?

You can see a small video about this on this screencast: [http://autode.sk/1VDHN9J](http://autode.sk/1VDHN9J)

Thanks for the support 🙂

Cesare

---

<div class="post-metadata">

**Author:** ![Paul\_Wintour](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/paul_wintour/32/9381_2.png) [@Paul\_Wintour](https://forum.dynamobim.com/u/Paul_Wintour)\
**Post date:** [April 21, 2016, 5:59am UTC](https://forum.dynamobim.com/t/family-rotation/3803/2 "2016-04-21T05:59:47Z")

</div>

What version of Dynamo are you using. I had this problem a while ago but v0.9.1 solved it.

&nbsp;

[http://dynamobim.org/forums/topic/vector-angle-between-only-returning-absolute-values/](http://dynamobim.org/forums/topic/vector-angle-between-only-returning-absolute-values/)

---

<div class="post-metadata">

**Author:** ![Cesare\_Caoduro3](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/cesare_caoduro3/32/9974_2.png) [@Cesare\_Caoduro3](https://forum.dynamobim.com/u/Cesare_Caoduro3)\
**Post date:** [April 21, 2016, 8:58am UTC](https://forum.dynamobim.com/t/family-rotation/3803/3 "2016-04-21T08:58:35Z")

</div>

I thought was an issue of the version 0.8.1 but within this project I can’t use newset versions.

Finally I got with a little bit of vector geometry and little bit of “lucky”

https://screencast.autodesk.com/Embed/Timeline/d36a2f27-a417-4b25-9bea-126cfb2b32f9

This is the final version and now is perfect 🙂

Thanks

---

<div class="post-metadata">

**Author:** ![E.HIDALGO](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/e.hidalgo/32/13007_2.png) [@E.HIDALGO](https://forum.dynamobim.com/u/E.HIDALGO)\
**Post date:** [August 25, 2016, 6:29pm UTC](https://forum.dynamobim.com/t/family-rotation/3803/4 "2016-08-25T18:29:47Z")

</div>

Hello Cesare\_Caoduro3.

I have some problem with the angle for family, when I try to rotate, in some cases it’s ok but when the vector direction is negative It doesn’t work.

can you share me your node please.

I don’t understand the flow with vectors and the angle

sorry, my english is very bad, I am learning

 ![](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/2X/5/51d694c5f072ee34ba5541e68a6e137bb2ed0319.PNG)

---

<div class="post-metadata">

**Author:** ![Cesare\_Caoduro3](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/cesare_caoduro3/32/9974_2.png) [@Cesare\_Caoduro3](https://forum.dynamobim.com/u/Cesare_Caoduro3)\
**Post date:** [September 5, 2016, 6:10pm UTC](https://forum.dynamobim.com/t/family-rotation/3803/5 "2016-09-05T18:10:55Z")

</div>

Sorry I was on vacation…tomorrow I’ll share the script

---

<div class="post-metadata">

**Author:** ![E.HIDALGO](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/e.hidalgo/32/13007_2.png) [@E.HIDALGO](https://forum.dynamobim.com/u/E.HIDALGO)\
**Post date:** [September 6, 2016, 1:22pm UTC](https://forum.dynamobim.com/t/family-rotation/3803/6 "2016-09-06T13:22:02Z")

</div>

Cesare\_Caoduro3

Thanks for your help, I’ll wait.
