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)
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.