# Revit's Individual Element Rotation

**URL:** <https://forum.dynamobim.com/t/revits-individual-element-rotation/35951>\
**Category:** Geometry\
**Tags:** revit\
**Created:** [May 14, 2019, 3:53pm UTC](https://forum.dynamobim.com/t/revits-individual-element-rotation/35951 "2019-05-14T15:53:49Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![jwy997](https://avatars.discourse-cdn.com/v4/letter/j/9e8a1a/32.png) [@jwy997](https://forum.dynamobim.com/u/jwy997)\
**Post date:** [May 14, 2019, 3:53pm UTC](https://forum.dynamobim.com/t/revits-individual-element-rotation/35951/1 "2019-05-14T15:53:49Z")

</div>

Good Day,

I am trying to pick only selected model elements to rotate in z-axis. However, i encounter some issues. Geometry.Rotate duplicate the element and rotate with the angle assigned. Also, the duplicated element cant be selected/remove and will stay as blue.

 ![Capture2](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/f/8/f8968efe21ab03ea6c5b40cba5408ef38b3a7c90.png)  
 ![Capture](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/1/6/16e96b1dfb6b09ce2fa443a8419733259d0b57bb.png)

---

<div class="post-metadata">

**Author:** ![architectcoding](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/architectcoding/32/105118_2.png) [@architectcoding](https://forum.dynamobim.com/u/architectcoding)\
**Post date:** [May 15, 2019, 1:36am UTC](https://forum.dynamobim.com/t/revits-individual-element-rotation/35951/2 "2019-05-15T01:36:38Z")

</div>

Untick Preview:

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

---

<div class="post-metadata">

**Author:** ![jwy997](https://avatars.discourse-cdn.com/v4/letter/j/9e8a1a/32.png) [@jwy997](https://forum.dynamobim.com/u/jwy997)\
**Post date:** [May 15, 2019, 2:23am UTC](https://forum.dynamobim.com/t/revits-individual-element-rotation/35951/3 "2019-05-15T02:23:29Z")

</div>

After switching off preview, the selected model didn’t rotate. Please advice with the code above. Did you try to run it and check?

---

<div class="post-metadata">

**Author:** ![architectcoding](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/architectcoding/32/105118_2.png) [@architectcoding](https://forum.dynamobim.com/u/architectcoding)\
**Post date:** [May 15, 2019, 2:26am UTC](https://forum.dynamobim.com/t/revits-individual-element-rotation/35951/4 "2019-05-15T02:26:50Z")

</div>

Did you untick only that node, right?

---

<div class="post-metadata">

**Author:** ![jwy997](https://avatars.discourse-cdn.com/v4/letter/j/9e8a1a/32.png) [@jwy997](https://forum.dynamobim.com/u/jwy997)\
**Post date:** [May 15, 2019, 2:34am UTC](https://forum.dynamobim.com/t/revits-individual-element-rotation/35951/5 "2019-05-15T02:34:11Z")

</div>

Yes. It seems that the process just show me the preview of the command i launch. The original elements stay as same as before. [SelectedFamilyRotation.dyn](https://forum.dynamobim.com/uploads/short-url/k8LMrYm5JjTkQIXEsP15FGMuBw5.dyn) (5.0 KB)

---

<div class="post-metadata">

**Author:** ![kennyb6](https://avatars.discourse-cdn.com/v4/letter/k/7ba0ec/32.png) [@kennyb6](https://forum.dynamobim.com/u/kennyb6)\
**Post date:** [May 15, 2019, 3:11am UTC](https://forum.dynamobim.com/t/revits-individual-element-rotation/35951/6 "2019-05-15T03:11:50Z")

</div>

You are using the node Geometry.Rotate, that rotates the geometry in Dynamo. Are you trying to rotate the element inside Revit? Then you should be using FamilyInstance.SetRotation

---

<div class="post-metadata">

**Author:** ![jwy997](https://avatars.discourse-cdn.com/v4/letter/j/9e8a1a/32.png) [@jwy997](https://forum.dynamobim.com/u/jwy997)\
**Post date:** [May 15, 2019, 3:15am UTC](https://forum.dynamobim.com/t/revits-individual-element-rotation/35951/7 "2019-05-15T03:15:20Z")

</div>

Yes, i am trying to rotate element in z-axis of Revit. The issue with FamilyInstance.SetRotation is it rotates all elements related to the family. However, i will like to only rotate selected model elements. Please advise on how to do so.

---

<div class="post-metadata">

**Author:** ![kennyb6](https://avatars.discourse-cdn.com/v4/letter/k/7ba0ec/32.png) [@kennyb6](https://forum.dynamobim.com/u/kennyb6)\
**Post date:** [May 15, 2019, 3:21am UTC](https://forum.dynamobim.com/t/revits-individual-element-rotation/35951/9 "2019-05-15T03:21:56Z")

</div>

Try reading this post, it might help. The video shows how to type the python code:

> [@How to rotate families around a nominated 2nd point?](https://forum.dynamobim.com/t/how-to-rotate-families-around-a-nominated-2nd-point/18126/5):
>
> Hi @r.lietz, Maybe this is an interesting video for you? Kind regards, Mark

---

<div class="post-metadata">

**Author:** ![jwy997](https://avatars.discourse-cdn.com/v4/letter/j/9e8a1a/32.png) [@jwy997](https://forum.dynamobim.com/u/jwy997)\
**Post date:** [May 15, 2019, 5:50am UTC](https://forum.dynamobim.com/t/revits-individual-element-rotation/35951/10 "2019-05-15T05:50:36Z")

</div>

Thank for the recommendation, the video was beneficial. So, what i hope with the script is simply the rotation to take Y-axis as the start and rotates clockwise to a certain angle and which will turn to complete a circle(360 degrees)
