I’m having a little bit of difficulty trying to solve a problem involving a rotation. What I would like to achieve is the replication of the simple Revit function, rotating a selection of families around a nominated point, but I can’t seem to find a dynamo node that will do the trick.
I have a sample room (4 walls) with a layout of fixtures (can be equipment, furniture or lights etc). The sample room is initially in a orthogonal orientation in plan, however the building designer may choose a different rotation for the room, say +20deg or -35deg etc. What I would like to do is have the fixtures that are placed in the orthogonal room, be placed and rotated to the correct angle to match the rotated room.
The rooms potentially would be in a separate file, ie a linked in model and potentially be arranged at different angles. Currently I am picking up the center of the room as the rotation point for all elements that need to be rotated, but I’m having difficulty completing the task with Dynamo.
The task is easily achieved in Revit selecting all the elements, and rotating around the room center point, which I have located using a light fixture to mark the position. Currently in Dynamo I can achieve the rotation but it rotates around the project base point, rather than a nominated center point of the room, I not sure how to pick the room center point as the rotation point. Any help in solving the approach will be greatly appreciated.
The images below show what I would like to achieve, along with a Revit 2017 and Dynamo files. Essentially the rotation of the elements is around a random point (not the project base point and in this case the center of the room) and also not around the family insertion points.
ROTATE_TO_ROOM.dyn (30.6 KB)
Sample Revit file : ROTATE FAMILIES
The walls in the Revit file can be switched on and off with a filter.