<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>idea Bulk attachments for multiple features in ArcGIS Pro Ideas</title>
    <link>https://community.esri.com/t5/arcgis-pro-ideas/bulk-attachments-for-multiple-features/idi-p/1335191</link>
    <description>&lt;P&gt;Please, for the love of god, give us the ability to attach photos to multiple features. I refuse to point and click photos for 3000+ features.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jerome6_0-1696456181503.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/82342iCA1B617827F6007C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jerome6_0-1696456181503.png" alt="jerome6_0-1696456181503.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can't do it anymore, I can't.&lt;/P&gt;</description>
    <pubDate>Thu, 05 Oct 2023 18:09:16 GMT</pubDate>
    <dc:creator>jerome6</dc:creator>
    <dc:date>2023-10-05T18:09:16Z</dc:date>
    <item>
      <title>Bulk attachments for multiple features</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/bulk-attachments-for-multiple-features/idi-p/1335191</link>
      <description>&lt;P&gt;Please, for the love of god, give us the ability to attach photos to multiple features. I refuse to point and click photos for 3000+ features.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jerome6_0-1696456181503.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/82342iCA1B617827F6007C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jerome6_0-1696456181503.png" alt="jerome6_0-1696456181503.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can't do it anymore, I can't.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Oct 2023 18:09:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/bulk-attachments-for-multiple-features/idi-p/1335191</guid>
      <dc:creator>jerome6</dc:creator>
      <dc:date>2023-10-05T18:09:16Z</dc:date>
    </item>
    <item>
      <title>Re: Bulk attachments for multiple features</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/bulk-attachments-for-multiple-features/idc-p/1335202#M26422</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/725204"&gt;@jerome6&lt;/a&gt;&amp;nbsp;I feel for you, as automation of simple tasks is, still, sorely lacking in ArcGIS Pro. If I may offer a suggestion though: if you have not already, you would do well to take some time to learn and apply Python to this and similar problems, as that will be your fastest solution. Esri does not implement changes like this with any kind of expedience. Several years ago, I had built a custom Geoprocessing tool that did exactly what you are asking for: allowed a user to select multiple features, select an image or multiple images, then apply that image to all features selected. Unfortunately, I no longer have that tool, but I do recall it was not too terribly difficult to build. But that's just my thought on this issue.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Oct 2023 22:19:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/bulk-attachments-for-multiple-features/idc-p/1335202#M26422</guid>
      <dc:creator>RandyCasey</dc:creator>
      <dc:date>2023-10-04T22:19:00Z</dc:date>
    </item>
    <item>
      <title>Re: Bulk attachments for multiple features</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/bulk-attachments-for-multiple-features/idc-p/1335212#M26423</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/725204"&gt;@jerome6&lt;/a&gt;&amp;nbsp;Correction: I still had my first draft version in an old Python repository. This version only allowed for a single attachment on multiple features but could be edited to allow for multiple attachments, but it's yours if you'd like. It is incredibly old, so it may not be compliant with current match table standards (i.e., it uses OBJECTID and not GlobalID as the relate ID), but according to my linter, all the functions are still valid, so with some modification, it is a very serviceable script:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;## Your EGDB or FGDB where your feature class is stored
ws = "[Geodatabase path]"
## Your working feature class
fc = "[Feature Class path]"
## Where the Match Table will be created
tblMatch = "[Match Table path]"
## Python Tool fields
selSet = arcpy.GetParameterAsText(0)
attch = arcpy.GetParameter(1)
dicMatchTbl = {}
arcpy.CreateTable_management(ws, "MatchTable", None, None)
arcpy.AddFields_management(tblMatch, [['RelateID', 'LONG'], ['FileName', 'TEXT', None, 255]])
count = arcpy.GetCount_management(selSet)
arcpy.AddMessage("{0} features found".format(count))

for att in attch:
	attchLen = len(att)
	c = "\\"
	cPos = [pos for pos, char in enumerate(att) if char == c]
	cPosLen = len(cPos)
	cIndx = cPos[cPosLen-1]
	wkgFolder = att[:cIndx+1]
	attchNm = att[cIndx+1:]
	arcpy.AddMessage("Using {0} as current attachment...".format(attchNm))
	arcpy.AddMessage("Using {0} as current working folder...".format(wkgFolder))
	arcpy.AddMessage("Now building Match Table...")
	with arcpy.da.SearchCursor(selSet, 'OID@') as cursor:
		for row in cursor:
			oid = row[0]
			dicMatchTbl[oid] = attchNm


for key, value in dicMatchTbl.items():
	relId = key
	fPath = value
	row = [relId, fPath]
	with arcpy.da.InsertCursor(tblMatch, ['RelateID', 'FileName'])as cursor:
		cursor.insertRow(row)

arcpy.AddMessage("Match Table updated, now attaching attachments...")
arcpy.AddAttachments_management(fc, 'OBJECTID', tblMatch, 'RelateID', 'FileName', wkgFolder)
arcpy.Delete_management(tblMatch)
arcpy.AddMessage("Job's done!")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Oct 2023 22:51:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/bulk-attachments-for-multiple-features/idc-p/1335212#M26423</guid>
      <dc:creator>RandyCasey</dc:creator>
      <dc:date>2023-10-04T22:51:34Z</dc:date>
    </item>
    <item>
      <title>Re: Bulk attachments for multiple features</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/bulk-attachments-for-multiple-features/idc-p/1335514#M26432</link>
      <description>&lt;P&gt;Thanks for the Idea&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/725204"&gt;@jerome6&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;Are you attaching the same photo to all of these features? Could you share more specifics about what your workflow is?&amp;nbsp; Have you checked out the &lt;A href="https://pro.arcgis.com/en/pro-app/3.0/tool-reference/data-management/generate-attachment-match-table.htm" target="_self"&gt;Generate Attachment Match Table GP&lt;/A&gt; tool and does that help you in your efforts?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Oct 2023 18:08:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/bulk-attachments-for-multiple-features/idc-p/1335514#M26432</guid>
      <dc:creator>SSWoodward</dc:creator>
      <dc:date>2023-10-05T18:08:52Z</dc:date>
    </item>
    <item>
      <title>Re: Bulk attachments for multiple features - Status changed to: Needs Clarification</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/bulk-attachments-for-multiple-features/idc-p/1335516#M26433</link>
      <description />
      <pubDate>Thu, 05 Oct 2023 18:10:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/bulk-attachments-for-multiple-features/idc-p/1335516#M26433</guid>
      <dc:creator>SSWoodward</dc:creator>
      <dc:date>2023-10-05T18:10:24Z</dc:date>
    </item>
    <item>
      <title>Re: Bulk attachments for multiple features</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/bulk-attachments-for-multiple-features/idc-p/1335674#M26437</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/604859"&gt;@SSWoodward&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;I've received a request from my customer to attach a selection of vegetation photos for certain road features. I've tried using the "Generate Attach Match..." tool, but I usually get the incorrect output. Not sure what I'm doing wrong there...&lt;/P&gt;&lt;P&gt;I've also noticed that that when I share a layer with attached jpegs to Portal, the attachments are not visible in the new Map Viewer but are visible in the Classic Map Viewer. Any ideas how to make the attachments visible in the new Map Viewer?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Oct 2023 06:26:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/bulk-attachments-for-multiple-features/idc-p/1335674#M26437</guid>
      <dc:creator>jerome6</dc:creator>
      <dc:date>2023-10-06T06:26:54Z</dc:date>
    </item>
    <item>
      <title>Re: Bulk attachments for multiple features - Status changed to: Open</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/bulk-attachments-for-multiple-features/idc-p/1337962#M26536</link>
      <description />
      <pubDate>Fri, 13 Oct 2023 22:23:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/bulk-attachments-for-multiple-features/idc-p/1337962#M26536</guid>
      <dc:creator>SSWoodward</dc:creator>
      <dc:date>2023-10-13T22:23:02Z</dc:date>
    </item>
    <item>
      <title>Re: Bulk attachments for multiple features</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/bulk-attachments-for-multiple-features/idc-p/1337963#M26537</link>
      <description>&lt;P&gt;Thanks for the clarification&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/725204"&gt;@jerome6&lt;/a&gt;&amp;nbsp;are you attaching a single image to multiple features or are you attaching distinct sets of unique images to each feature?&lt;/P&gt;</description>
      <pubDate>Fri, 13 Oct 2023 22:24:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/bulk-attachments-for-multiple-features/idc-p/1337963#M26537</guid>
      <dc:creator>SSWoodward</dc:creator>
      <dc:date>2023-10-13T22:24:22Z</dc:date>
    </item>
    <item>
      <title>Re: Bulk attachments for multiple features</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/bulk-attachments-for-multiple-features/idc-p/1371691#M28077</link>
      <description>&lt;P&gt;I wanted to share with everyone on this post a &lt;STRONG&gt;&lt;A href="https://www.esri.com/arcgis-blog/products/arcgis-pro/data-management/a-pair-of-sample-tools-to-add-or-remove-attachments-by-selection/" target="_self"&gt;blog&lt;/A&gt;&lt;/STRONG&gt; that discusses two sample tools that addresses&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/725204"&gt;@jerome6&lt;/a&gt;&amp;nbsp;earlier post. I hope you find the blog and tools to be helpful in providing an alternative way of adding and removing attachments. Enjoy, and keep posting great ideas and feedback. &lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jan 2024 16:01:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/bulk-attachments-for-multiple-features/idc-p/1371691#M28077</guid>
      <dc:creator>MikeJensen</dc:creator>
      <dc:date>2024-01-18T16:01:13Z</dc:date>
    </item>
  </channel>
</rss>

