Checking if the direction of walls and windows are correctly placed on the exterior faces of building

Good morning from Italy. in my current work i am trying to create some scripts that would help to automatize some analysis based on .rvt models.
These .rvt models are made by third parts professionials using Guide Lines developed by the laboratory in which i am currently working.
The first script that i have to create is based on the possibilty to automatically check if the orientation of outer walls and windows is correctly placed on the outer face of the building, because this is one of the specifications inside the Guide Lines.

Do you have any idea on how it would work, considering that i also have some curtain walls, and i think that the node “Wall.orientation” does not work on them?

Thanks in advance for the help.