Hi! So I am looking to call out furniture families that are in a current room along with the walls and have that furniture move with the walls when those walls need to move. I know there is a constraint called “Moves with nearby elements” but these pieces of furniture are tied into a furniture family so the "Moves with nearby elements will shift every piece of furniture in one direction when in reality I only want the one piece of furniture that is touching that wall to move. I thought I got close with this script, but something isn’t working because at the end when I place the “Elements.Move” node and click run the furniture family disappears from revit all together and can’t be found. Not sure if this is the right component or even the right workflow, please help!
Hi @taylor_felty,
Here’s an example of what you’re trying to achieve.
Element Move By Distance.dyn (54.0 KB)
this is great thank you! i have a question, when i run the script the element.setlocation node is returning nulls, and when i test it by moving a wall in revit then running the script, the wall is moved to match where the furniture is and i want the furniture to move where the wall is located. i attached a screenshot below thank you for the help!
i tried the springs node for element.setlocation and that one returned elements and not null values but now when i move a wall in revit and run the script nothing happens in the model
I received a null value even though the script worked perfectly. I believe this node will return null if the elements has moved; otherwise, it should not return null.
Do you want to adjust both the x and y coordinates of your furniture? I created this script based solely on the facing orientation, so it won’t move the side orientation. If you want to move both the x and y positions of the furniture, please refer to the snippet below.
Element Move By Distance.dyn (43.7 KB)
The script ran perfectly when I used the spring node to set the location and provided the element, instead of returning null. Could you send a snippet where you’re experiencing issues?