Tag Info

Hot answers tagged


that's nearly it, but the referencing of the field should be done on the field list, not the field name fieldList = arcpy.ListFields(r"C:\your.shp") for field in fieldList[19:]: print field.name


Based on the comment by @KHibma I put together the code snippet below to demonstrate how to "use arcpy.GetMessageCount and arcpy.GetMessage and get [messages] 1 by 1 by index" import arcpy try: arcpy.CreateFolder_management(r"C:\temp1","test") except: pass for idx in range(0,arcpy.GetMessageCount()): print "Message {}: ...

Only top voted, non community-wiki answers of a minimum length are eligible