Rename Feature Class attribute

2011
3
11-19-2013 09:47 AM
Marc-OlivierEthier
New Contributor II
Hi,

Can I rename a feature class attribute with ArcObjects (FGDB, SDE) ? I'm using IClassSchemaEdit4.AlterFieldName and it seem to work in a FGDB.

I'm asking the question because I have often read that I can't rename a feature class attribute with ArcObjects...

Thanks
0 Kudos
3 Replies
RobertBorchert
Frequent Contributor III
if you only need to do it once don't over complicate it.

just create the new attribute with the name you want and then populate it with the attributes from the old attribute.

Or if your careful simply rename it in Access.

Hi,

Can I rename a feature class attribute with ArcObjects (FGDB, SDE) ? I'm using IClassSchemaEdit4.AlterFieldName and it seem to work in a FGDB.

I'm asking the question because I have often read that I can't rename a feature class attribute with ArcObjects...

Thanks
0 Kudos
LanceShipman
Esri Regular Contributor
At ArcGIS 10.1 you can use ArcObjects to rename a field in a geodatabase. It was not possible prior to 10.1.
0 Kudos
LuisBautista
New Contributor
0 Kudos