Revit's Individual Element Rotation

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