<?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>topic Pass attributes to arcpy.GetParameterAsText in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/pass-attributes-to-arcpy-getparameterastext/m-p/120268#M9445</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Working with Arcmap 10.6 and ArcToolbox script, I would like to select polygons and pass the attributes of a field of those selected polygons to arcpy.GetParameterAsText , I would then pass the arcpy.GetParameterAsText to update the TEXT ELEMENT of arcpy.mapping.ListLayoutElements to something like R2875103700_R2875103600_R2875300000_R2829301100. Is this possible if so how?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-emoji image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/499374_TaxparcelsAccount.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Jul 2020 15:31:09 GMT</pubDate>
    <dc:creator>CCWeedcontrol</dc:creator>
    <dc:date>2020-07-07T15:31:09Z</dc:date>
    <item>
      <title>Pass attributes to arcpy.GetParameterAsText</title>
      <link>https://community.esri.com/t5/python-questions/pass-attributes-to-arcpy-getparameterastext/m-p/120268#M9445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Working with Arcmap 10.6 and ArcToolbox script, I would like to select polygons and pass the attributes of a field of those selected polygons to arcpy.GetParameterAsText , I would then pass the arcpy.GetParameterAsText to update the TEXT ELEMENT of arcpy.mapping.ListLayoutElements to something like R2875103700_R2875103600_R2875300000_R2829301100. Is this possible if so how?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-emoji image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/499374_TaxparcelsAccount.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jul 2020 15:31:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/pass-attributes-to-arcpy-getparameterastext/m-p/120268#M9445</guid>
      <dc:creator>CCWeedcontrol</dc:creator>
      <dc:date>2020-07-07T15:31:09Z</dc:date>
    </item>
    <item>
      <title>Re: Pass attributes to arcpy.GetParameterAsText</title>
      <link>https://community.esri.com/t5/python-questions/pass-attributes-to-arcpy-getparameterastext/m-p/120269#M9446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was able to figure it out and it wasn't as complicated as I thought.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;if int(arcpy.GetCount_management("Parcels").getOutput(0)) &amp;gt; 0:

        arcpy.Select_analysis("Parcels", "SelPar")
        
unique_values = set(row[0] for row in arcpy.da.SearchCursor("SelPar", "Field"))

format1 = ("_".join(unique_values))

Name = format1
for elm in arcpy.mapping.ListLayoutElements(mxd, "TEXT_ELEMENT"):
    if elm.text == "Par Text":
        elm.text = Name&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 07:00:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/pass-attributes-to-arcpy-getparameterastext/m-p/120269#M9446</guid>
      <dc:creator>CCWeedcontrol</dc:creator>
      <dc:date>2021-12-11T07:00:05Z</dc:date>
    </item>
  </channel>
</rss>

