Rotating a selection of family instances around a specific axis.

Rotating a selection of family instances around a specific axis.

1083759
Explorer Explorer
4,040 Views
1 Reply
Message 1 of 2

Rotating a selection of family instances around a specific axis.

1083759
Explorer
Explorer

Hi. I've modelled a row of sunshades in a roof overhang, over a large window section.

I'm trying to use Dynamo to rotate these sunshades around their midpoint, to vary the amount of sun they let in. But I'm quite new to Dynamo, and the only sequence I've gotten to somewhat work rotates the families around the Z axis, while I need to rotate them around their X axis. Is there a way to change the rotation axis?

 

I've looked around for a while, but has been unable to find a way to solve this (Apart from perhaps remaking the model).  But I hope this isn't a duplicate thread. 

0 Likes
4,041 Views
1 Reply
Reply (1)
Message 2 of 2

L.Maas
Mentor
Mentor

Unfortunately that node only rotates it around the centroid of the object and then in the Z-Axis

 

Here a starting point for you.

 

Dynamo Rotate Family Instance.png

Note that it makes use of the archi-lab.net package

Script rotates the family around a line. Line is created here on 0,0,0 and in the direction of the Z-axis.

Also note that if you can not rotate an object in plain revit (around a certain axis) Dynamo also will fail.

 

Other approach might be to create the rotation as parameter inside the family. Then you only would have to set the rotation aporameter with Dynamo

Louis

EESignature

Please mention Revit version, especially when uploading Revit files.

0 Likes