I am attempting to edit the load name of all electrical circuits. Each circuit always equals one device/element. I would like to combine five parameters from each said element and copy to it’s circuit as the load name.
The short story is that I can’t figure out how to filter for empty strings. The first 4 parameters will always have a value but the last parameter may sometimes be empty. All parameters need to be combined and separated by “_” except the last one uses “.”. I am trying to filter so that if the last parameter is empty it uses a different string.join nodes and does not add a “.”. Examples: AAA_AAA_AA_AAAA or AAA_AAA_AA_AAAA.AA.
Besides the filtering aspect I was able to get it working in my testing on single elements. I wanted to figure out the string manipulation before before the next hurdle of performing the list operations to copy this info to all circuits at once.
Using some custom nodes from MEPover (get panels and elements from circuit) and Zebra (get instance or type parameter value by name).ElecCircuitLoadNamefromDevice.dyn (24.9 KB)