routeCapacity = {'route 1': '12 0', 'route 2': '11 1', 'route 3': '11 2', 'route 4':'9 3', 'route 5': '6 4' } rows = arcpy.UpdateCursor("MyVRPLayer\Routes") for row in rows: row.Capacities = routeCapacity[row.Name] rows.updateRow(row) del row del rows
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.