I'm using v10 and am I am wanting to extract a field value from a shapefile and use that value as a new parameter in my Python script. However, there doesn't seem to be an easy way to do this. There is a ModelBuilder Only tool named Get Field Value, but it can't be used in Python. You can throw the tool into ModelBuilder, export it to a Python script, and try and use the code, but the following line of code did not work as there was an error opening the toolbox:
arcpy.ImportToolbox("Model Functions")
I'm basically converting my shapefile to a table view, trying to run Get Field Value, and using that value as a parameter. Any suggestions are greatly appreciated!!
Thanks,
KG