So I’m still pretty new to Dynamo but I had an idea that I’m having trouble with finishing:
I want dynamo to look at a room, see the element(s) in a room, identify which wall/perimeter that element is closest to, and then move that object to be against that wall/surface.
So far I can find the closest distance based on the objects face to the perimeters face(see attached) but I keep going down rabbit holes on what will be the best next step to push it against that face.
-I can move it just fine if I was only looking for its point, but that puts it through the wall sometimes. Really want this to be “back of desk finds nearest wall”.
-I’m curious if there’s an easy way to rebuild this so I can identify the right vectors as opposed to numerical values
-Is there a way I’m missing to keep elements cognizant of the curves they become?
See all attached
Geometry_Placer_2.dyn (22.6 KB)
Move_Me_Test.rvt (1.2 MB)
nal/3X/a/2/a28d1c359c9fd2094f98b8e586f644562b63278f.PNG" width=“690” height=“293”>
P.S. Thanks to @Hyunu_Kim for laying down the ground work for the initial design of this with: http://dynamobim.org/forums/topic/curveloop-from-room-boundaries/