Center of elements Rotation

Hello. Does any body know how to find the center of rotation of revit elements when you rotate it with dynamo?
Or how I can assign my center of rotation ?

imageimage

Just a guess: Try getting the transform origin.

If the elements are Revit families of your own it’s most defenitly the easiest way to set the centre of your family as origin. Then the script will work as it is now. Dynamo is fantastic but always try to do things right in Revit if possible.