[GIS] Naming output files where original file name retained without file extension using ModelBuilder iteration

arcgis-10.1arcgis-desktopiteratormodelbuilder

I am using iterate raster in ModelBuilder to create hillshade and slope simultaneously for many rasters within one folder.

My problem is when I name the output files.

Whenever I use, %Name%, the model fails because the resulting output names include the file extension.

If I use %n%, it only creates one file.

Is there another way of naming output files where the original file name is retained but without the file extension?

Best Answer

The Parse Path (ModelBuilder) should be able to meet your requirement.

The Parse Path tool parses the input into its file, path, name, or extension. The output can be used as in-line variables in the output name of other tools.

If not, then a diagram of your model and more details would be helpful to try and provide a more targeted Answer.

Related Question