Placing A Clearance on a Slanted Beam

I Created this revit family that makes a 2" clearance around the beam. (to show space needed for fire proofing).
I got the script to work on flat beams but i dont know how to make them work on beams with a slant. Any Ideas?

Revit Family and DYN:
Beam Clearances.dyn (48.2 KB)
Beam Clearance Family2.rfa (336 KB)

image

image