Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import arcpy, inspect, os
- fc = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe()))) + "ProposedDesignDB.mdbAnodeEquipment"
- fields = ['MATERIALNUMBER','MATERIALNUMBERTEXT']
- def AnodeUpdate(y):
- cursor = arcpy.da.InsertCursor(fc, fields)
- for x in xrange (0, y):
- newRow = ["100212","ANODE 1 LB 3 FT LEAD 12 WHITE COPPER"]
- cursor.insertRow(newRow)
- del newRow
- del cursor
Advertisement
Add Comment
Please, Sign In to add comment