import arcpy from arcpy import env env.workspace = r"C:\temp\python\test.gdb" fc = "Airports" for field in arcpy.ListFields(fc): print field.name, field.type, field.length
#Open output text file log = open('listfields.txt', 'w') for field in arcpy.ListFields(fc): print >> log, field.name, field.type, field.length log.close()
Membros conectados podem postar, seguir atualizações e mais. Novo aqui? Registre uma conta gratuita.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.