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")
Přihlášení členové mohou přispívat, sledovat aktualizace a další. Jste tu noví? Zaregistrujte si bezplatný účet.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.