FamilyInstance set rotation problem

Error as attached for update the clashed family which each time rotate 5 degree (i.e. 20/4) in 4 times.
Thanks for your help

test_11.dyn (12.0 KB)

You can input family in familyinstance.setrotation, not a Element.Id.

Yes. Thanks a lot!