Strange movements of elements during performing Elements.Rotate (modified)

I don’t have much time to dig into python at this moment (the package called Basic_Python_Template could help), but we have struggled many times with family instances rotation on the forum. I ended up using FamilyInstance.ByFace and it could worth a try. See here: