Rotating family around it's insertion point?

Hi all,

I’m trying to rotate a number of batter piles around there insertion points. The piles are in a circular pattern and in the moment they all point in the same direction.
I have the coordinates from the piles. I have the angle between the piles (from centre to pile) but I can’t get it to work using Geometry.Rotate. I get an error message (see picture).

Is this node the best way to rotate an family around a coordinate? Or am I going the wrong way?

Here’s how my foundation looks like now:

All piles should point outwards from the center.

Here’s a part of the script that handles the nodes input:

FamilyInstance.SetRotation should get you started

2 Likes

YES!!! EUREKA!
Thanks for helping me out @john_pierson!
That did it!

2 Likes