How to Rotate a Vertical Rectangular Duct

Hi All,

I am trying to rotate vertical rectangular duct by dynamo. It cannot be done by using FamilyInstance.SetRotation

And I found there is no “Orientation” Data in Duct Family

But it is strange to me that we can rotate all the elements by rotation function. So I believe we can do it by Dynamo with so method I don’t know.

Anyone know how? please help!

an example that WITH “Orientation” Data: