I am attempting to make a graph that takes all rooms located within a project and determines the elements located within. It then gets the parameter values of one category of elements and assigns the values to a parameter located in another category. More simply put, it should find the ceiling elevation and move all air terminals to that elevation. Simple enough right? I think not.
If you look at the attached image, you will see two initial paths. The upper path defines the ceilings located in rooms and the lower path defines the air terminals located in rooms. It then creates a list of each. I then useList.groupbykey to associated each element with it’s room. From there it’s simply getting and setting values.
The big problem is circled. For some reason the upper path does not work. It shows “null” instead of “room” like the lower path. The set-up is exactly the same. For my test, I have my rooms set to 0" bottom elevation and 20’ top elevation. My diffusers and ceilings are all well within that range. Also, why does the lower path create a “list of lists” while the upper path creates just a normal “list” (a normal list is the prefered outcome). Any help would be greatly appriciated.