<?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 Re: Describe Field Name? in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/describe-field-name/m-p/1477647#M83658</link>
    <description>&lt;P&gt;I went to arcpy.ListFields(lyr) and was able to easier differentiate between the different point layers.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;act_map = aprx.activeMap
map = aprx.listMaps("Map1")
OPField = "xxxx"
for lyr in layers:
    fieldList = arcpy.ListFields(lyr)
    for field in fieldList:
        if field.name == OPField:
            symbology = lyr.symbology
            symbology.updateRenderer("SimpleRenderer")
            symbol = symbology.renderer.symbol
            symbol.color = {"RGB": [169, 0, 230, 100]}
            symbol.outlineColor = {"RGB": [0, 0, 0, 100]}               
            symbol.size = 6
            lyr.symbology = symbology&lt;/LI-CODE&gt;</description>
    <pubDate>Thu, 23 May 2024 13:48:09 GMT</pubDate>
    <dc:creator>Davec43</dc:creator>
    <dc:date>2024-05-23T13:48:09Z</dc:date>
    <item>
      <title>Describe Field Name?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/describe-field-name/m-p/1477551#M83650</link>
      <description>&lt;P&gt;Currently the workflow is to split two different Feature Layer by an attribute which produces a lot of separate layers. Then use arcpy.Describe to apply symbology to the based on the layer type (point/Line).&lt;/P&gt;&lt;LI-CODE lang="c"&gt;act_map = aprx.activeMap
map = aprx.listMaps("Map1")
layers = act_map.listLayers()
for lyr in layers:
    if(arcpy.Describe(lyr).dataType)=='FeatureLayer':
        if arcpy.Describe(lyr).shapeType=='Point':
            symbology = lyr.symbology
            symbology.updateRenderer("SimpleRenderer")
            symbol = symbology.renderer.symbol
            symbol.color = {"RGB": [169, 0, 230, 100]}
            symbol.outlineColor = {"RGB": [0, 0, 0, 100]}               
            symbol.size = 6
            symbol.outlineWidth = 1
            lyr.symbology = symbology  # "re-set" property symboloy&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;This works but now we're adding another&amp;nbsp;Feature Layer (Point) that will require separate Symbology. I have the idea to use "Fieldnames" to differentiate the two but can't figure it out.&lt;/P&gt;</description>
      <pubDate>Thu, 23 May 2024 10:58:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/describe-field-name/m-p/1477551#M83650</guid>
      <dc:creator>Davec43</dc:creator>
      <dc:date>2024-05-23T10:58:29Z</dc:date>
    </item>
    <item>
      <title>Re: Describe Field Name?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/describe-field-name/m-p/1477647#M83658</link>
      <description>&lt;P&gt;I went to arcpy.ListFields(lyr) and was able to easier differentiate between the different point layers.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;act_map = aprx.activeMap
map = aprx.listMaps("Map1")
OPField = "xxxx"
for lyr in layers:
    fieldList = arcpy.ListFields(lyr)
    for field in fieldList:
        if field.name == OPField:
            symbology = lyr.symbology
            symbology.updateRenderer("SimpleRenderer")
            symbol = symbology.renderer.symbol
            symbol.color = {"RGB": [169, 0, 230, 100]}
            symbol.outlineColor = {"RGB": [0, 0, 0, 100]}               
            symbol.size = 6
            lyr.symbology = symbology&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 23 May 2024 13:48:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/describe-field-name/m-p/1477647#M83658</guid>
      <dc:creator>Davec43</dc:creator>
      <dc:date>2024-05-23T13:48:09Z</dc:date>
    </item>
    <item>
      <title>Re: Describe Field Name?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/describe-field-name/m-p/1477669#M83661</link>
      <description>&lt;P&gt;As I commented to your question over at GIS SE:&amp;nbsp; &lt;A href="https://gis.stackexchange.com/questions/481717/describe-field-name" target="_blank" rel="noopener"&gt;arcpy - Describe Field Name? - Geographic Information Systems Stack Exchange&lt;/A&gt;.&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;According to &lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/classes/field.htm" target="_blank" rel="nofollow noopener noreferrer"&gt;Field - ArcGIS Pro | Documentation&lt;/A&gt;, "Field properties can be accessed through the ListFields and Describe functions." If you already have a Describe object for a layer, e.g., desc = arcpy.Describe(layer), retrieving the fields property will return a list of Field objects: desc.fields.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Thu, 23 May 2024 14:31:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/describe-field-name/m-p/1477669#M83661</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2024-05-23T14:31:24Z</dc:date>
    </item>
  </channel>
</rss>

