<?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 Add Highlight option to &amp;quot;Alter Field (Data Management)&amp;quot; tool in ArcGIS Pro Ideas</title>
    <link>https://community.esri.com/t5/arcgis-pro-ideas/add-highlight-option-to-quot-alter-field-data/idi-p/1378711</link>
    <description>&lt;P&gt;The Alter Field (Data Management) geoprocessing tool should allow an option to highlight the field. There should be a "&lt;SPAN&gt;field_is_highlighted" option that you can set to true to highlight the field when used through arcpy.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Currently, to highlight a field through arcpy, you have to do it through the cim, however; the cim.featureTable.fieldDescriptions is often an empty array. So any attempt to automatically and quickly change the property will end up failing.&lt;/P&gt;&lt;P&gt;Instead, you end up having to run the "Alter Field" data management tool and apply something that will result in a net 0 change, e.g.:&lt;BR /&gt;arcpy.management.AlterField(lyr, "SHAPE", clear_field_alias=True)&lt;/P&gt;&lt;P&gt;That will populate the fieldDescriptions array and then you can run through the array and update the field's highlight property in the cim and then update the lyr's definition. However; this takes extra steps, and it would be nice to just go:&lt;/P&gt;&lt;P&gt;arcpy.management.AlterField(lyr, "FIELD_TO_HIGHLIGHT", field_is_highlighted=True)&lt;/P&gt;</description>
    <pubDate>Tue, 06 Feb 2024 16:55:33 GMT</pubDate>
    <dc:creator>Matthew_Muehlhauser</dc:creator>
    <dc:date>2024-02-06T16:55:33Z</dc:date>
    <item>
      <title>Add Highlight option to "Alter Field (Data Management)" tool</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/add-highlight-option-to-quot-alter-field-data/idi-p/1378711</link>
      <description>&lt;P&gt;The Alter Field (Data Management) geoprocessing tool should allow an option to highlight the field. There should be a "&lt;SPAN&gt;field_is_highlighted" option that you can set to true to highlight the field when used through arcpy.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Currently, to highlight a field through arcpy, you have to do it through the cim, however; the cim.featureTable.fieldDescriptions is often an empty array. So any attempt to automatically and quickly change the property will end up failing.&lt;/P&gt;&lt;P&gt;Instead, you end up having to run the "Alter Field" data management tool and apply something that will result in a net 0 change, e.g.:&lt;BR /&gt;arcpy.management.AlterField(lyr, "SHAPE", clear_field_alias=True)&lt;/P&gt;&lt;P&gt;That will populate the fieldDescriptions array and then you can run through the array and update the field's highlight property in the cim and then update the lyr's definition. However; this takes extra steps, and it would be nice to just go:&lt;/P&gt;&lt;P&gt;arcpy.management.AlterField(lyr, "FIELD_TO_HIGHLIGHT", field_is_highlighted=True)&lt;/P&gt;</description>
      <pubDate>Tue, 06 Feb 2024 16:55:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/add-highlight-option-to-quot-alter-field-data/idi-p/1378711</guid>
      <dc:creator>Matthew_Muehlhauser</dc:creator>
      <dc:date>2024-02-06T16:55:33Z</dc:date>
    </item>
  </channel>
</rss>

