For anyone interested, it is possible to use a Python script to determine the orientation of walls in Archicad. The chief problem is that most of the parameters needed (ALL) are not available to Python Scripts. A AddOn is used to supply this info to the Python script. Straight forward but a lot of steps. For a more detailed explanation see the blogs on the Developers site.
A video demonstrates the technique
YouTube video to Demo Wall direction property
This really demonstrates the need for more data access within the Python API
Script is posted on GitHub
GitHub Site
Gerry
Windows 11 - Visual Studio 2022; ArchiCAD 27