Rotation with FamilyInstance.byPointandLevel

Hello everyone!

So I know this is a very beginner question and maybe easy to solve but I started to learn Dynamo. What I want to create is a very simple table using the function FamilyInstance.ByPointandLevel. I created the base points, the problem is that when I run the program, it draws the legs of the table horizontaly and not vertically as I want. I saw there’s a FamilyInstance.SetRotation but it just rotates it around the same horizontal axis. Maybe I need to use Vector.Rotate but I’m sincerely lost.

Thank you for your help.

Hello…Looks more as a Revit family problem, try to tjeck there

1 Like

Hi @alex3 ,

I think the FamilyInstance.SetRotation node always rotates the Family around it’s own insertion point. So like Sovitek suggested, check your family if its nice and centered.


Thank you @Daan. But can I code it directly in Dynamo without changing it within the Family? Is there a possible way?

Yes, you can certainly create a work-around inside Dynamo to fix this, however this would be really “ad hoc” and probably cause problems in the future.

1 Like