Doors - How to read their Exterior hosting walls Cardinal Direction value and put back into hosted Doors

Hi All,

I’ve developed a simple scripts that reads Cardinal Directions of a hosting wall and then pushes it back into a Door parameter. It has been set up to filter out all walls that are not Function Exterior.
The thing is however, that, even though the TEST model’s True North=Project North, E and W doors appear as NE and SW and i have no clue whatsoever how to make it work.

Here are some screenshots and the graph:




TEST.Wall.Direction.dyn (28.1 KB)

Any help greatly appreciated.

M4RC3L

Well, it doesn’t work anyway, I’ve mixed something up and it doesn’t select actual Exterior wall.

Well, good news it works but the Cardinal Annotations are still a tad weird - why E=NE and W=SW is beyond me.