Select to view content in your preferred language

Relative path names in Model Builder

3125
1
06-13-2018 04:14 AM
Nicole_Ueberschär
Esri Regular Contributor

I have set up a couple of models in Model Builder (ArcGIS 10.5.1). They all have checked the option "store relative path names". But when I copy the model to a different folder it keeps the input/output features with the same link as in the original. I expected that with relative pathnames checked it would keep the relation within the folder as it does within ArcMap. 

If this is not working (what is reeeeeeally annoying) - is there an easy way to change the links to match the new destination? The Workspace setting in the Environments does not help me because I am using different geodatabases for raster and vector data. 

I am developing these models for a client and thought I could just give them a folder with all data and the models in a toolbox and everything should work 😞

1 Reply
DanPatterson_Retired
MVP Emeritus
This option is checked by default. If you move the toolbox containing the model or the data used within the model, this option changes the paths of data variables in the model according to the path, relative to the toolbox.

Relative paths, means the data also has to have been relative to the location of the toolbox. Perhaps you can show your folder and gdb structure identifying where everything is saved.  If a folder or gdb is not in the same folder or a subfolder in the model toolbox path, it will fail