So I don't use python much and when I do I just copy, paste and make minor tweaks to something out there already . I'm trying to find out what type of Fitting these are by the number of lines boundary's its touching (4 = cross, 3 = tee, 2 = 90/45 degree 1 = endcap. Next step is to get it to loop and I can figure that out but then I can foresee more problem.
Also I have spot I need to fix, field calculates because it calculates all field and not the individual 1. I have water gas storm and more to still do I don't want to so it 1 by 1.
The images attached have the info