[GIS] Merge or dissolve line features based on two or more attributes

arcgis-desktoparcmapdissolvemergemodelbuilder

I am working in Arcmap 10.2 and I would like to do the following according to the example table below, but I do not have a clue on how to do this. I am working in ModelBuilder. Is there a tool for this or another easy way to do this?

Lines

The attribute table shows line features, some attributes have the same number (attribute B) and the same material (attribute A) this means that they are the extent of each other like the figure below:

Line features

If attributes have the same number and material I would like to make one Object of these ones and I would like it to sum the shape lengths. So for example ObjectID 1 and 2 will become one Object from Wood (Attribute A) with number 13324 (Attribute B) and a Shape length of 8.997 + 0.012 = 9.009. In the figure red and blue parts will be one part.

Best Answer

Use the Dissolve (Data Management) tool, select your number and material fields, then click OK. I'm not sure if the lengths will be added, but a simple "Calculate Geometry" length should fix that.

Related Question