TransWikia.com

Relative paths not working in model builder

Geographic Information Systems Asked by Pavel V. on March 29, 2021

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?

2 Answers

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

Correct answer by Hilal Al-Rajhi on March 29, 2021

I believe relative pathnames do not work in Model Builder when the Hard Drive letter changes (or across Hard Drives). Also, try setting your Output/Data-Paths to a subfolder from where the toolbox/script resides.

Answered by Alex on March 29, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP