That was helpful. Thanks again, Thanos!I think this code is getting me closer to what I need, but I am still getting syntax errors. Since I'm using example code blocks to copy/paste, I feel like I may be putting more into this than needed. The user will have an open ArcMap document that will have one or two feature classes in it. The feature classes won't always have the same name, so I would like for the input features/table to be requested, and not just signified within the code. Secondly, do I need to have the lines that get the input and output workspace if I am running straight from the document that I am wanting the information written to? Here is the code that I have gotten so far:import arcpy
# Set the input workspace
arcpy.env.workspace = arcpy.GetParameterAsText(0)
# Set the output workspace
outWorkspace = arcpy.GetParameterAsText(1)
try:
# Get a list of the featureclasses in the input folder
fcs = arcpy.ListFeatureClasses()
for fc in fcs:
# Validate the new feature class name for the output workspace.
featureClassName = arcpy.ValidateTableName(fc, outWorkspace)
outFeatureClass = os.path.join(outWorkspace, featureClassName)
# Set local variables
inTable = arcpy.GetParameterAsText(2)
fieldName1 = "symbol"
expression = "Reclass(string(!MTFCC!))"
codeblock = """def Reclass(symbol):
if MTFCC == "H3010":
return "River"
elif MTFCC == "H1100":
return "Creek""""
# Add fields
arcpy.AddField_management(inTable, fieldName1, "STRING")
# Calculate symbol values
arcpy.CalculateField_management(inTable, fieldName1, expression, "PYTHON_9.3", codeblock)
except:
arcpy.AddMessage(arcpy.GetMessages(2))
print arcpy.GetMessages(2)