0

I am using ArcGIS Pro.

I have a tool that exports attachments from an existing feature class and another one that takes those photos from a given folder and turns them into points on the map. I am trying to use ModelBuilder to combine these two into one process, go from photo attachments in one feature class to a point feature class layer. I am running into an issue though.

Whenever I run the model, the geotag photo to points tool will run first before the attachment remover can, thus creating an empty point feature class. I have tried to look into preconditions but the attachment remover doesn't generate anything like a feature class that I could use to set as a precondition. I will have the model pasted below.

Does anyone have any idea how to set the attachment remover tool to go first or how to mess with the sequence that tools are run within the model?

enter image description here

7
  • 1
    The export attachment tool in your picture is a custom tool? If you right click it, do you have anything from create variable > from parameter? Hopefully you do, so you can add that, assuming its an output, to make into a pre-condition for GeoTagged Photos tool
    – KHibma
    Jul 28 at 20:24
  • Why is Attachments connected to the GeoTagged tool and Attachments? This looks a bit circular. I also agree with Khibma.
    – danak
    Jul 28 at 20:48
  • The export attachment tool doesn't have any output that can be used as a precondition which is the issue. Also I have in that picture the attachments set up as a precondition but that doesn't work to stop the Geotagged Photos to Points from going first. I have even trying going into my custom export attachment tool to add another output but it wouldn't work. Jul 28 at 20:58
  • can you post the "ExportAttachements" model? (Use the 'Edit' link to update your question). Jul 28 at 21:52
  • Export your model to a Python script and edit that output in a Python IDE to ensure Export attachments code executes before geotagging.
    – GBG
    Jul 28 at 22:15

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.