<?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 Conditionally skip field calculation for certain rows in ArcGIS Pro Ideas</title>
    <link>https://community.esri.com/t5/arcgis-pro-ideas/conditionally-skip-field-calculation-for-certain/idi-p/1306009</link>
    <description>&lt;P&gt;Regarding the field calculator in the ArcGIS Pro attribute table (Python):&lt;/P&gt;&lt;P&gt;It would be great if there were a way to&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;skip&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;calculating a certain record, if certain conditions are met in the script.&lt;/P&gt;&lt;P&gt;For example, a the line&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;doesn't&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;have true curves, then calculate the shape normally. But if the line&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;does&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;have true curves, then skip the field calculation — without editing the row/invoking editor tracking.&lt;/P&gt;&lt;HR /&gt;&lt;P&gt;I can do something that's&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;close&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to that. I can return the original value. That works, but it&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;does&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;update the row, which seems unnecessary and invokes editor tracking (which is misleading, since nothing's really changed).&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;return&lt;/SPAN&gt; orig_geom&lt;/PRE&gt;&lt;P&gt;Alternatively, I've tried&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;return&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;without specifying anything to return. But that sets the shape to null, which isn't what I want.&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;return&lt;/SPAN&gt;
&lt;/PRE&gt;&lt;P&gt;The same thing happens if I omit the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;return&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;entirely. The shape gets set to null.&lt;/P&gt;&lt;P&gt;I know it would be ideal if I could avoid&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;selecting&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;lines with curves in the first place (in the Attribute Table). But there isn't a way to query for curves using SQL in the Select By Attributes tool. So doing it in the field calculator script seems like the only other option.&lt;/P&gt;&lt;HR /&gt;&lt;P&gt;Related: &lt;A href="https://gis.stackexchange.com/questions/425048/conditionally-skip-field-calculation-for-certain-rows/462885" target="_blank" rel="noopener"&gt;https://gis.stackexchange.com/questions/425048/conditionally-skip-field-calculation-for-certain-rows/462885&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 06 Jul 2023 02:19:43 GMT</pubDate>
    <dc:creator>Bud</dc:creator>
    <dc:date>2023-07-06T02:19:43Z</dc:date>
    <item>
      <title>Conditionally skip field calculation for certain rows</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/conditionally-skip-field-calculation-for-certain/idi-p/1306009</link>
      <description>&lt;P&gt;Regarding the field calculator in the ArcGIS Pro attribute table (Python):&lt;/P&gt;&lt;P&gt;It would be great if there were a way to&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;skip&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;calculating a certain record, if certain conditions are met in the script.&lt;/P&gt;&lt;P&gt;For example, a the line&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;doesn't&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;have true curves, then calculate the shape normally. But if the line&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;does&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;have true curves, then skip the field calculation — without editing the row/invoking editor tracking.&lt;/P&gt;&lt;HR /&gt;&lt;P&gt;I can do something that's&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;close&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to that. I can return the original value. That works, but it&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;does&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;update the row, which seems unnecessary and invokes editor tracking (which is misleading, since nothing's really changed).&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;return&lt;/SPAN&gt; orig_geom&lt;/PRE&gt;&lt;P&gt;Alternatively, I've tried&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;return&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;without specifying anything to return. But that sets the shape to null, which isn't what I want.&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;return&lt;/SPAN&gt;
&lt;/PRE&gt;&lt;P&gt;The same thing happens if I omit the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;return&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;entirely. The shape gets set to null.&lt;/P&gt;&lt;P&gt;I know it would be ideal if I could avoid&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;selecting&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;lines with curves in the first place (in the Attribute Table). But there isn't a way to query for curves using SQL in the Select By Attributes tool. So doing it in the field calculator script seems like the only other option.&lt;/P&gt;&lt;HR /&gt;&lt;P&gt;Related: &lt;A href="https://gis.stackexchange.com/questions/425048/conditionally-skip-field-calculation-for-certain-rows/462885" target="_blank" rel="noopener"&gt;https://gis.stackexchange.com/questions/425048/conditionally-skip-field-calculation-for-certain-rows/462885&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jul 2023 02:19:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/conditionally-skip-field-calculation-for-certain/idi-p/1306009</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2023-07-06T02:19:43Z</dc:date>
    </item>
  </channel>
</rss>

