Geometry.Rotate

im having an issue with rotating my geometry. this was working, i change how the script filters the Windows and Doors by level, Now its not working. im getting the correct angles but it is outputing the curves all with the same rotation. any ideas?

i get the same result if i use FamilyInstance.setRotation.

if I bypass the code block it doesn’t rotate at all. if it runs through the code block it rotates all curves 90 degrees

corrected it by using level 2… still, too novice to remember or realize I need to use levels