Parse Path (ModelBuilder)


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


This is a deprecated tool. This functionality has been replaced by the new Parse Path tool.


  • Esta herramienta solo está disponible en la cinta ModelBuilder para su uso en modelos. La herramienta no está disponible desde el panel Geoprocesamiento ni desde Python.

  • Parsing results are controlled by the Parse Type parameter. Example: If the input to the Parse Path tool is C:\ToolData\InputFC.shp, then

    Parse TypeResult
    File name and extension InputFC.shp
    File pathC:\ToolData
    File nameInputFC
    File extensionshp

  • The same functionality can be accessed in scripting with the Python os module. For example if you pass an input variable:

    Input = "C:\ToolData\InputFC.shp", then

    • To get the file InputFC.shp
      import os
    • To get the file path C:\ToolData
      import os
    • To get the file name InputFC
      import os
    • To get the file extension shp
      import os

  • The output of Parse Path is a string and cannot be connected directly as an input to the tools such as Create Feature Class in parameters like Feature Class Location which requires a workspace data type as input. Use %Value% inline variable substitution in such cases as shown below:

    Parse Path with Create Feature Class tool


EtiquetaExplicaciónTipo de datos
Input Values

Input values that you want to parse.

Any Value
Parse type

Specifies the parse type.

Given an input value of C:\ToolData\InputFC.shp:

  • File name and extensionOutput will be the file. Example: InputFC.shp
  • File pathOutput will be the file path. Example: C:\ToolData
  • File nameOutput will be the file name. Example: InputFC
  • File extensionOutput will be the file extension. Example: shp

Salida derivada

EtiquetaExplicaciónTipo de datos


Esta herramienta no utiliza ningún entorno de geoprocesamiento.

Información de licenciamiento

  • Basic: Sí
  • Standard: Sí
  • Advanced: Sí

Temas relacionados