Thanks! This helps a ton! I tried to following script, and it doesn't generate any errors, but I also don't see any sign of the pictures being associated with the points. When I use the Identify tool there is no image.
###Adding attachments to geodatabase import csv import arcpy import os import sys input = r"Y:/Data/practice_shape/Practice.gdb/test" inputField = "OBJECTID" matchTable = r"Y:/Data/practice_shape/Practice.gdb/test" matchField = "OBJECTID" pathField = "Image" picFolder = r"Y:/Data/practice_shape/images" try: # enable GDB attachments arcpy.EnableAttachments_management(input) # add attachments tool arcpy.AddAttachments_management(input, inputField, matchTable, matchField, pathField, picFolder) except: print arcpy.GetMessages(2)
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.