It was a wild ride but i did it
These are examples of the 3 cases of view directions that can happen:
First i filter the columns with x=0, that means all with vertical front surface.
Then i split the remaining columns in x = + and x = -
Maybe there would have been a cleaner way, but I´m good as long as it works.
The Structural plans are now all rotated right: