Apologies that I have not posted an image of my model, I am away from my computer for a while but am trying to sort this out anyways.
I have a number of different animal GPS location points, and a bunch of different habitat characteristics. I have built a simple model that uses the Near tool to calculate the distance from each point, create a new field using Add Field, naming it after the habitat characteristic shapefile name (using Parse Path and inline variable substitution), and then populates that added field with the NEAR_DIST values. It then continues on for all of my habitat characteristics.
I built the model a while ago and have since changed the names of the habitat characteristics (and there are a bunch of them) and unfortunately in the renaming them they are all now above the 10 character limit for a field name. What I was wondering is if there was any way to truncate the habitat characteristic shapefile title to 10 characters so that the add field tool doesn't error out.
Thanks in advance, and if you need any more information please let me know. I tend to leave things out by mistake when I ask questions on here.
Edit - Examples of habitat names are - 2001 Upland, 2001 Harvest, 2001 Deciduous
Essentially I need to remove the year and the space and they will all be under 10 characters.
Also, at home now so here is the tool I created. It runs through but doesn't successfully "Add Field" because its trying to name it after the "Near Feature" (the habitats whose names are too long) and so it just skips it.