Windows Facing Wrong Direction

I am a beginner in Dynamo, and I am confused about how to change the direction that my windows are facing. Currently, according to Revit, the windows are facing the interior rather than facing the exterior as windows should be. Is there a specific node that can address this issue (taking into consideration the orientation of the exterior wall)?

you can check the wall exterior vector by using wall.exteriordirection
if windows is facing to this direction, u can flip the window

Was facing a similar problem myself.

Two archilab nodes were used to address the problem:

  1. Wall.ExteriorDirection,
  2. FamilyInstances.FlipFacingOrientation.

For solution details, please have a look at the ‘Orient Windows to Exterior and Get hosting Wall’ block in the Dynamo graph below. It’s the first block after the pink block.