Im building a model and I need to dissolve line, that I marked in picture, to a line with field(NUMBER_OF_LINES) value of 2. Thsi filed represents how many lines were constructed to one line after Merge Divided Roads tool. I tried just to Dissolve all lines based on CODE and VOLTAGE and then using Spatial Join, Buffer and Identity to give/return my dissolved lines attributes of the longest line they are constructed off. e.g.: in this case dissolved line (OID:1346 + OID:771) should get field(NUMBER_OF_LINES) value(2).I get good results when creating a buffer from dissolved line and then finding longest line in it. But if some polygones overlap at some places the value of longest line may be incorect.
I'm working with ArcGIS 10.2.2 Advanced licence. Thanks for your time reading this.