Rotating families after placing them

Hi all,

I’m trying to make a script that places H columns along a polycurve with an offset to the left or right.
So far that works. But now I wan’t to rotate these columns so that the H, in this case, is perpendicular to the curve. Now they are oriented to the projects XY direction.

What I’ve got so far:

I’ve tried (I think) all grasshoppers rotate nodes but none of them work, they all return null.

So they main question is, how do I rotate Revit families after placing them.

Hi Pim,

Are these structural columns or just regular families?

Structural columns have a Cross-Section Rotation Parameter

If its a Regular Family you can rotate using the Element Location component.

1 Like

Hi Japhy,

The columns are generic models. So the element location solution works perfectly.
Now my problem is to find the correct rotation. My thought was to get the vector between the point on the original curve and the offset curve and than get the angle between that vector and the 1,0,0 vector. But because of the length difference in the curves, due to the offset, the points are shifted so the point to point vector isn’t perpendicular to the original curve. as you can see in this image.

UPDATE

Fixed it with this. The input is the offsetcurve and the offset point parameters

1 Like