Hello,
I am currently trying to set up a script where I can assign the name of a panel family to an existing parameter in multiple device families, based on their proximity to multiple panel families. Each panel can reach a max of 16 devices which means if there are more than one panel on a floor then the list needs to analyze the distance of the devices compare it and decide which one is closer to which panel. Also, it can not exceed 500 feet and needs to chose the panel on the same level.
Here is what I have done so far:
-
Located the device families in space.
-
Found the distance of each device to each panel (3 lists) and further filtered by level
-
Filtered List by removing all devices that were over 500 feet.
I am not sure how I can take this list and use it to assign the control panel name (list) to a max of 16 devices (items in list). Please help.
Thank You