Let's highlight a nice interactive didactical Python-based Revit API learning challenge on how to get the bounding box from a Revit element and determine its centre Cyril's Python HVAC blog Rotating elements around their centre in Python Retrieve element and bounding box from picked reference Use location point instead of bounding box centre Final working solution...

Click here to view the entire blog post.