Dynamo script for rotating multiple elements (e.g Steel Column) around its center

Dear all,

I have created a Dynamo script to rotate multiple steel column objects, but it is not working. Can someone tell me what is wrong with the script and how I should create it properly? I am new to Dynamo and would greatly appreciate any suggestions and feedback.

1 Like

Why are you not using the node called “FamilyInstance.SetRotation” ?

it’s still not working. do you have other suggestions?

I would suggest you look into the rotate node and what the input it requires.

As you do not need any coordinate system to rotate the elements, just put in your “number slider” into the “degree” input and should be fine.

Only the pedestal rotates, but the steel column does not. I want both the pedestal and the steel column to rotate.

Hey,

Your input is an element. its supposed to be a familyinstance according to the node. check the error.
No clue why the structural column isnt classified as a familyinstance.

this node from the rhytm package might help you. worked just fine for me

Columns are a weird category. They are technically a FamilyInstance but tend to act more like system families. They don’t use the typical rotation method from the FamilyInstance class so I think that’s your issue with the out of the box node.

Look into setting parameters for the columns - there is one which relates to the cross section rotation.

Thank you, it worked!

Is this in Dynamo or in Revit parameters setting?

its a revit parameter for the column but it can be pulled into dynamo. just put the node “parameters” after you made the selection and pin the output. should be able to see cross section rotation.

put that in a string and use “setparameterbyname”