Family instance rotation

Hi there.

I try to rotate some family instance made by FamilyInstance.ByFace node.

And my goal is rotate the family instances using given degree.
However, FamilyInstance.SetRotation is not working properly.

Please check the pics below and if you have any brilliant idea, please tell me that.


before applying the rotation degree it looks okay. but as soon as i change its degree. It looks like pic above.


I found the reason.

I made faces using vector of points on line.
It has wrong value.