Tag(Electrical Fixtures) with element orientation

Hi there,

I’m trying to make a Dynamo script where the tags automatic change by orientation.
The point is that I can only create the orientation Horizontal or Vertical. my family tag doesn’t have the ability to orientation by element. can anybody help me with the script?

Do I have to remove the Boolean by horizontal and change it with another node?

I am trying to do this same thing but with structural framing in the structural plan views. Have you figured anything out?