[GIS] Relative paths not working in model builder

arcgis-10.1file pathmodelbuilder

I checked "Store relative path names" in my model, but ArcGIS seems to ignore the settings – the paths are always the same as on my computer.
Plus, the "Store relative path names" unchecks automatically sometimes (I didn't find what triggers it).

How to ensure the relative paths are used? Why does ArcGIS ignore the "Store relative path names" option?

Best Answer

As I have come across the same issue, here is how I could manage it:

  1. Check: Store relative path names.
  2. In environment settings, set the current workspace as the folder you placed your toolbox in.
  3. Having these two features set, toolbox will trigger its location wherever it is copied.
  4. Replace your static paths initials with "%workspace%".
  5. Test by moving the toolbox to an other directory in you machine
Related Question