I am trying to build a model that gets a multivalue as an Input which is located in different folders within a main folder, and stores the Output in new folders that have the same structure like in the input, but with different pathway.
I tried to select the data with a "multivalue iterator", then simultaneously create a folder with "parse path" (=x) that has a c:...\main_folder\%x%.
there are two problems with that:
- I get just a single output (I'm running the data through alot of processes) from my multivalue input. How can I fix that? I want that every vector\raster will have a new name (%oldname%_%newname%), and each will be exported to a different folder.
So, for example, I want to take a 2 files:
and I want that each of them will be exported like this:
- I want a dynamic pathway, so the tool could create the folders in the main folder by itself, and because there are a lot of sub-folders within the sub-folders, I want to create only the folders that contain the selected data.
Also, the folders structure may change, so I do not want to create a mother-folder and then create more folders with preconditioning.
I should mention I do not have any experience with python and scripting, but I believe that if you are able to give me a script to merge into my modelbuilder, then I'll learn how to edit it a little to match my data.