How I can to get a surface angle to a vertical line?

Hey all,

I am writing a code to calculate total surfaces areas of structural elements. However, in this code I want to filter-out the surfaces which are in certain range of angles, like the beam in the figure below.
I would like to be able to test every face/surface of an selected element and go through a test (TRUE/FALSE) and calculate just the surfaces which meet the criteria.
image

Can you help me please?

Calculate the angle between the Surface normal (normalize the vector obtained) with the Z-Axis

1 Like

I just found it. But thanks for the reply!

Please feel free to post other methods here.

Cheers!