Guest User

Untitled

a guest
Jan 20th, 2017
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. import arcpy, inspect, os
  2.  
  3. fc = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe()))) + "ProposedDesignDB.mdbAnodeEquipment"
  4. fields = ['MATERIALNUMBER','MATERIALNUMBERTEXT']
  5.  
  6. def AnodeUpdate(y):
  7. cursor = arcpy.da.InsertCursor(fc, fields)
  8. for x in xrange (0, y):
  9. newRow = ["100212","ANODE 1 LB 3 FT LEAD 12 WHITE COPPER"]
  10. cursor.insertRow(newRow)
  11. del newRow
  12. del cursor
Advertisement
Add Comment
Please, Sign In to add comment