3 Replies Latest reply on May 4, 2012 7:23 AM by bruce.nielsen

    Need more program help!

      I am still having trouble referencing the shapefile to Add the Field. One person said to use pathname and r to in_table, but that is not working unless I have it typed wrong (see below). I need to reference a shapefile to Add the field. I know I can set workspace and then basename, which would allow me to use a geodatabase with shapefile inside). I need to learn both ways!! Thanks!!

      import arcpy
      ... import os.path
      ... os.path r"C:\Users\Michelle\Desktop\GIS\FA_Urbans.shp"
      ... arcpy.AddField_management ("FA_Urbans", "POPSQMI","TEXT", "20")