AnsweredAssumed Answered

How to: add field, then calculate same field with name of feature class

Question asked by Hydronaut on Feb 9, 2016
Latest reply on Feb 11, 2016 by bixb0012


Hi all,

 

This question has come up a lot, but I am struggling to find a working solution to what should be a simple problem.

 

Scenario:

I have a file geodatabase with 100 feature classes.

I want to add a field to each feature class and call it "Name"

I then want to calculate the field "Name" with the actual name of the feature class, for each feature class in the geodatabase.

 

I'm not a whiz at python and model builder, but have more luck with the latter.

 

Any help appreciated.

 

I've seen a few suggestions in other forums to use VB Script in the field calculator and have for example:

Name = "%Name%" , however this seems to produce a field that is populated with "%Name%" instead of the actual name of the feature class.

Outcomes