Rotate set Error

Dear Team,

Currently im facing the wrong rotation for placement of pipe in hanger.

Please advise what is wrong & how to correct.

Please find the attached marked photo Blue mark rotation is currently working. but i want Red mark roation.

Script

What happens when you connect the vector.angleaboutaxis output with the familyinstance.setrotation as a replacement for the number 10 you currently have input?

Hi you could probably do it in the family itself…or try openmep there is some nodes for rotate on specified vector