Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

In ArcGIS 10, is there a way to add a field to a feature class even if it currently contains data?

share|improve this question
add comment

3 Answers

up vote 3 down vote accepted

Add Field ArcGIS 10 http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Adding_fields/005s0000000v000000/

share|improve this answer
    
Thanks. I had been trying to do it through ArcCatalog, but this did what I needed. –  Seth P. Aug 30 '10 at 15:48
    
Is there any way to modify an existing field name (not an alias)? –  Seth P. Aug 30 '10 at 19:25
1  
Modifying existing field names is at top of ArcGIS Desktop Ideas that users would like to see Esri implement: ideas.arcgis.com/… –  PolyGeo Sep 8 '10 at 0:01
add comment

In Python, using the ArcPy site package, you'd use

arcpy.AddField_management(.....)

You cannot modify the actual field name of an existing field. I would LOVE to be able to do that, but even if they implement it, I bet it'll be similar to renaming in SQL. That is, the net effect is a renamed field, but the underlying operation is: make new field with new field name, copy contents from old field, drop old field name.

share|improve this answer
add comment

To do this programmatically, use IClass.AddField. (Do NOT use IFieldsEdit.AddField on an existing dataset).

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.