theFieldList = gp.ListFields(theBillingTable) fields=[] for field in the FieldList: fields.append(str(field.Name)) if "LINK_TO" not in fields: gp.AddField_management(theBillingTable,"LINK_TO"," TEXT",3) gp.AddMessage("Added the field to the table") LinkToFld = "LINK_TO" gp.AddMessage(LinkToFld) gp.CalculateField_management(theBillingTable,LinkToFld,"\"-\"","PYTHON") else: gp.AddMessage("The field is already in the table")
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.