sysFieldList = [] attFields = arcpy.ListFields(fc_name) for attField in attFields: if attField.required: sysFieldList.append(attField.name) print "System Fields", sysFieldList
import arcpy desc = arcpy.Describe(r'path to your featureclass') fldNameShape = desc.shapeFieldName
sysFieldList = [] attFields = arcpy.ListFields(fc_name) for attField in attFields: if attField.required: sysFieldList.append(attField) print "System Fields", sysFieldList
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.