# Rotation of a family on its axis

**URL:** <https://forum.dynamobim.com/t/rotation-of-a-family-on-its-axis/75111>\
**Category:** Revit\
**Created:** [April 3, 2022, 1:31pm UTC](https://forum.dynamobim.com/t/rotation-of-a-family-on-its-axis/75111 "2022-04-03T13:31:15Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alain\_Hamel](https://avatars.discourse-cdn.com/v4/letter/a/ac8455/32.png) [@Alain\_Hamel](https://forum.dynamobim.com/u/Alain_Hamel)\
**Post date:** [April 3, 2022, 1:31pm UTC](https://forum.dynamobim.com/t/rotation-of-a-family-on-its-axis/75111/1 "2022-04-03T13:31:15Z")

</div>

Hello,

I have a duct ventilation accessory, and I would like to apply a rotation to it on its axis (angle defined by the XY and Z plane)  
I started a script to apply this rotation. He works.  
But now we need to know the current angle to calculate the angle of rotation to apply.  
This is where I’m stuck  
On image 1, the floor view, where I have to apply the rotation on the family on the right  
 ![image 1](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/3/d/3df1cf00991410e71e8e0a2320c84f64e7202921.png)  
On image 2, a section (with an example of an angle)  
 ![image 2](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/6/1/6176c9a25eb9f437b94515450e11e652a880f775.png)

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

---

<div class="post-metadata">

**Author:** ![sovitek](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/sovitek/32/116237_2.png) [@sovitek](https://forum.dynamobim.com/u/sovitek)\
**Post date:** [April 3, 2022, 2:02pm UTC](https://forum.dynamobim.com/t/rotation-of-a-family-on-its-axis/75111/2 "2022-04-03T14:02:30Z")

</div>

Hello @Alain_Hamel …could something here help

 ![Screenshot 2022-04-03 081900](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/8/5/851c34e97fcf2015d0ce516bc1e07c0ec5142774.jpeg)

---

<div class="post-metadata">

**Author:** ![Alain\_Hamel](https://avatars.discourse-cdn.com/v4/letter/a/ac8455/32.png) [@Alain\_Hamel](https://forum.dynamobim.com/u/Alain_Hamel)\
**Post date:** [April 3, 2022, 2:12pm UTC](https://forum.dynamobim.com/t/rotation-of-a-family-on-its-axis/75111/3 "2022-04-03T14:12:09Z")

</div>

Hello,  
Thanks for your answer, but you get the same as me.  
With Rotate Fitting, the rotation is made from the starting angle.  
You should actually calculate the value of 38°, and apply a value of -38° in your script.  
But by default I do not know this value, precisely I would like to calculate it

---

<div class="post-metadata">

**Author:** ![sovitek](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/sovitek/32/116237_2.png) [@sovitek](https://forum.dynamobim.com/u/sovitek)\
**Post date:** [April 3, 2022, 4:11pm UTC](https://forum.dynamobim.com/t/rotation-of-a-family-on-its-axis/75111/4 "2022-04-03T16:11:53Z")

</div>

Hi,think it will be difficult as it will depends how your damperfamily is build
