I’m trying to make a dynamo-script for adding flanges next to valves, pumps etc, as the routing preferences cannot be used for our purpose. I’m stuck regarding the rotation of the added flanges: How can I control the rotation of the flanges with dynamo? Currently the flanges are added by the FamilyInstance.ByPoint-node, but I cant figure out how to modify the rotation after the flange is added.
I tried using the node FamilyInstance.ByFace, but the flange family is not face-based, so it will not work.
I have extracted the wanted rotation of the flange as a vector by using Connector.Direction in the MEPover package, as this gives the direction of the connector element on the pump/valve. I just don’t know how to use this info to rotate the flange.
Any help is mostly appreciated!