0

After iterate field value and get the 4 sheets I want,

enter image description here

enter image description here

Now I want to search about the images that have the same name of the sheet in origin folder and export them to a folder or gdb.

enter image description here

Here is the model I have built:

enter image description here

but it is not working. I don’t know the proper wildcard to use to get the same name from the images folder.

2
  • You had ArcPy in your title and tags but did not include a code attempt in your question body so I have removed them to keep this focused on ModelBuilder.
    – PolyGeo
    Commented Sep 12, 2022 at 10:41
  • in case someone need to answer with them, thank you
    – saraghafri
    Commented Sep 12, 2022 at 19:19

1 Answer 1

2

You were on the right track of using sub-models but the logic is flawed and its not clear if you are using in-line variable substitution?

I've spoofed up a folder of images (in my case they a BMP), importantly that all have a consistent naming convention, the sheet number is at the end, which looks like what you have too.

Sample data

I have a MASTER model with a sub-model. The master is this:

Master

The sub-model is this:

Sub model

In the sub-model there is only one iterator, the field value which would be working on the selection. The Calculate Value tool is used to construct a full path to the raster dataset and is set up as:

calculate Value tool

It is using in-line variable substitution to pass the sheet no text into the file path name and its output is a raster dataset, this allows its output to feed into the Copy Raster tool.

I use the in-line variable substitution again in the Copy Raster tool as show below:

Copy Raster tool

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.