Revit's Individual Element Rotation

revit
#1

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.


Capture

#2

Untick Preview:

image

#3

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

#4

Did you untick only that node, right?

#5

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 (5.0 KB)

#6

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

#7

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.

#9

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

#10

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)