# Family not coming in facing the same orientation

**URL:** <https://forum.dynamobim.com/t/family-not-coming-in-facing-the-same-orientation/14189>\
**Category:** Uncategorized\
**Created:** [August 22, 2017, 1:40pm UTC](https://forum.dynamobim.com/t/family-not-coming-in-facing-the-same-orientation/14189 "2017-08-22T13:40:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mix](https://avatars.discourse-cdn.com/v4/letter/m/919ad9/32.png) [@mix](https://forum.dynamobim.com/u/mix)\
**Post date:** [August 22, 2017, 1:40pm UTC](https://forum.dynamobim.com/t/family-not-coming-in-facing-the-same-orientation/14189/1 "2017-08-22T13:40:42Z")

</div>

hello I am trying to copy hangers linearly on a pipe but they are not coming in oriented as the same direction as the first hanger that I have selected. So my question is two fold. First, how do I orient each consectutive hanger so that it is oriented properly according to the first hanger. The second part is if I can orient it properly, can I somehow do it with out needing a first hanger on there and set the orientation via the pipe orientation? BTW I can use or download any packages only Springs, thanks!

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/4/1/41fb4fe463947398912aac402a6f32f47eee1bda.png)

---

<div class="post-metadata">

**Author:** ![Nick\_Boyts](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/nick_boyts/32/76313_2.png) [@Nick\_Boyts](https://forum.dynamobim.com/u/Nick_Boyts)\
**Post date:** [August 22, 2017, 3:18pm UTC](https://forum.dynamobim.com/t/family-not-coming-in-facing-the-same-orientation/14189/2 "2017-08-22T15:18:24Z")

</div>

Try getting the rotation of the initial family instance with Springs.FamilyInstance.Rotation or a similar node. Then you can use FamilyInstance.SetRotation to rotate your newly created families.

You can use the pipe to set your family orientation by using a similar method to get the direction of the pipe curve.

---

<div class="post-metadata">

**Author:** ![mix](https://avatars.discourse-cdn.com/v4/letter/m/919ad9/32.png) [@mix](https://forum.dynamobim.com/u/mix)\
**Post date:** [August 24, 2017, 4:24pm UTC](https://forum.dynamobim.com/t/family-not-coming-in-facing-the-same-orientation/14189/3 "2017-08-24T16:24:36Z")

</div>

Nick,  
That sounds great but I dont see the node you speak of anywhere. Is there a way I can do it in OOTB dynamo. I found this orientation node, but I dont know how to use it and it doesnt seem to want to work on the pipe.

> [@Nick\_Boyts](#):
>
> You can use the pipe to set your family orientation by using a similar method to get the direction of the pipe curve.

This would be ideal but I dont know how to harvest the information from the pipe yet. Can you be a little more specific please? Thanks!

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

---

<div class="post-metadata">

**Author:** ![Nick\_Boyts](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/nick_boyts/32/76313_2.png) [@Nick\_Boyts](https://forum.dynamobim.com/u/Nick_Boyts)\
**Post date:** [August 24, 2017, 4:35pm UTC](https://forum.dynamobim.com/t/family-not-coming-in-facing-the-same-orientation/14189/4 "2017-08-24T16:35:13Z")

</div>

Facing Orientation will probably work for the hanger. It gives you a vector which you need to convert to a rotation in degrees. Try finding the angle between your facing orientation vector and a 0 degree vector (probably the X-axis).

As for your pipe direction, you need to get its center line curve. There area a few custom nodes that will do this or you can try getting geometry from the pipe itself. Then you can get points along the curve to place your hangers.
