I think it’s something odd with the transformer family. Either that, or the fact that some were already circuited, and they apparently (according to the elec eng that I’m working with) behave oddly if you try to change the Distribution System once they’re already circuited. I think that was what was giving me the error.
I set it up to work on Panels, Switchboards and Transformers. It works fine on the first two. It broke all of the distribution systems on the transformers, so I’m working on fixing that now -.-’. Win some lose some, eh? haha. (Typically I test these things on detached projects, but I was a little overconfident this time and used it on a live one.)
The code is attached - it’s too large to take snips of. DistributionSettings.dyn (70.7 KB)
Also, please note - the nodes are a mess b/c I was trying to decipher the problem, and just let it go after I realized it was taking up too much time.