I am trying to calculate a field using part of the feature class path name (specifically, the last three characters of the geodatabase name). Is this possible? I've tried using the parse path tool and including the value as an inline variable subsitution with the VB string right function. Perhaps a more complicated Python script is neccessary?
with Python (you'll need to define workspace, the script loops on all feature classes in the workspace and update the field with the last three characters of its name :
EDIT : for the gdb name , the expression would be
|show 1 more comment|
Maybe just make your geodatabase workspace a required parameter for the model, and then assign that value to a variable, from this you could then pull the desired characters as you stated in your question.