Using variable to calculate field with ArcPy as script in toolbox?

المشرف العام

Administrator
طاقم الإدارة
stringvariable = "banana" arcpy.CalculateField_management("c:\point.shp", "SUBDIRECT", "stringvariable", "PYTHON") I get an error saying stringvariable is not defined what's the deal? I check stringvariable by printing it to screen and it contains what it should. I am trying to use a string variable to calculate a field with arcpy. I am stumped. Also it works like this when run as a script through idle or outside of arcmap, but now I am trying to add this script to a toolbox and I am getting this error.



أكثر...
 
أعلى