I created symbology classes of many polylines in ArcMap 10.2.

I want to know the class that each polyline belongs to (maybe written in a new field on the attribute table? or by exporting the symbology to a document ?).

Is it possible to export the symbology classes to the attribute table to identify which class each polyline I created belongs to ?

  • I'm a bit unclear on what you are trying to do. If you've created symbology classes, aren't your classes based on one the attribute table? Or did you individually altered each polyline's symbology, and are trying to write that to the data-table? – Mox Mar 18 '19 at 18:16
  • I would like to associate to each polyline the class to which it belongs... In this way, in the attribute table there will be the polyline FIDs, and near a field where it is written which class (for instance 1, 2, 3 ,4 or 5 ...) a given polyline belongs... – uttat Mar 19 '19 at 12:17
  • or maybe is it possible to convert each class to a shapefile? for instance I have 5 classes and I want 5 shapefiles... – uttat Mar 19 '19 at 12:56

Add a new column to the datatable, click on all the lines in a class, and then do a field calculate to assign the classname as a value to all of those lines. Repeat for each line class.

  • in fact, I would like to know the lines that belong to the different classes. I did a symbology that generally divided the lines into classes. On the map it is possible to identify the classes, but on the attribute table I don't know exactly how the lines are divided ... I have more than 9000 lines and I can't check one by one... – uttat Mar 19 '19 at 11:55
  • I'm unclear how you did a symbology that wasn't class-based, if not manually. – Mox Mar 20 '19 at 16:24

Very similar question was asked before, can't find it. Use below to populate new field in your table:

def Get_Class(x):
 for i,v in enumerate(breaks):
  if  v >= x:break
 return i+1
Get_Class( !NumericField! )
  • Thank you but it didn't work ... – uttat Mar 19 '19 at 12:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.