zjhassler

New arcpy user needing help with changing attribute fields, and values

Discussion created by zjhassler on Jan 17, 2014
Latest reply on Jan 20, 2014 by AdamCox
Hi

So heres my problem: I want to create a tool that will take 2 point shapefiles, Change the title of some of their attribute fields, change the value of attributes from an integer to a string (which I think I can do with a for loop with nested if/else statements), then append a third shapefile with the now modified shapefiles.

The way I'm thinking of doing this is to run feature class to feature class conversions on my 2 original shapefiles, saving the outputs in a scratch geodatabase.  I'm having trouble thinking up the code to make this happen.  Do I change the attribute field names in the conversion?  Is there another function or technique that would be better to do it afterword? How do I change the field type from a int to a string using python?  Any help would be greatly appreciated.  Thanks!

Outcomes