<?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:  Add a value automatically in the field in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/add-a-value-automatically-in-the-field/m-p/586139#M46008</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Joe,&lt;/P&gt;&lt;P&gt;ArcGIS Pro is part of ArcGIS Desktop. ArcGIS Desktop includes ArcMap, ArcCatalog, ArcScene, ArcGlobe... and ArcGIS Pro.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Aug 2018 11:44:30 GMT</pubDate>
    <dc:creator>AmirBar-Maor</dc:creator>
    <dc:date>2018-08-02T11:44:30Z</dc:date>
    <item>
      <title>Add a value automatically in the field</title>
      <link>https://community.esri.com/t5/python-questions/add-a-value-automatically-in-the-field/m-p/586129#M45998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a layer with 3 fields (1. Building number, 2. Street number, 3. Field combining building number and street number) The last field was calculated using the Field Calculator tool.&lt;BR /&gt;&amp;nbsp; But the problem is when you add a new record or a new building I will need to repeat this process Field Calculator&lt;BR /&gt;Is there a way to add data in field number 3 automatically without using Field Calculator to combine the value of the building number and the street when a new building is added?&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;I need to know if there is a script to do so.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;thanks beforehand&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="384200" alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/384200_السؤال.png" style="width: 620px; height: 344px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Nov 2017 16:07:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/add-a-value-automatically-in-the-field/m-p/586129#M45998</guid>
      <dc:creator>KhamisBaroud</dc:creator>
      <dc:date>2017-11-20T16:07:40Z</dc:date>
    </item>
    <item>
      <title>Re:  adding a value automatically in the field</title>
      <link>https://community.esri.com/t5/python-questions/add-a-value-automatically-in-the-field/m-p/586130#M45999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps in arcobjects.&amp;nbsp; What is the problem with doing the data entry first, then the calculations later?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Nov 2017 19:14:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/add-a-value-automatically-in-the-field/m-p/586130#M45999</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-11-20T19:14:50Z</dc:date>
    </item>
    <item>
      <title>Re:  adding a value automatically in the field</title>
      <link>https://community.esri.com/t5/python-questions/add-a-value-automatically-in-the-field/m-p/586131#M46000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to know if there is a script to do so&lt;/P&gt;&lt;P&gt;(Python or VB Code)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Nov 2017 19:21:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/add-a-value-automatically-in-the-field/m-p/586131#M46000</guid>
      <dc:creator>KhamisBaroud</dc:creator>
      <dc:date>2017-11-20T19:21:59Z</dc:date>
    </item>
    <item>
      <title>Re:  Add  a value automatically in the field</title>
      <link>https://community.esri.com/t5/python-questions/add-a-value-automatically-in-the-field/m-p/586132#M46001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using ArcObjects and VB.NET you could build an application extension that would listen to editor events, or a geodatabase class extension that listens to object class events.&amp;nbsp; Neither are very simple tasks however, and there are drawbacks to each, particularly class extensions (anyone accessing the data must have the extension's DLL installed, for example).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Editor Events doc:&amp;nbsp;&amp;nbsp;&lt;A class="link-titled" href="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#/IEditEvents_Interface/00200000009s000000/" title="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#/IEditEvents_Interface/00200000009s000000/"&gt;ArcObjects 10 .NET SDK Help&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Class Extension doc:&amp;nbsp;&lt;A class="link-titled" href="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#/Creating_class_extensions/000100000201000000/" title="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#/Creating_class_extensions/000100000201000000/"&gt;ArcObjects 10 .NET SDK Help&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So...&amp;nbsp; It's possible, but&amp;nbsp;I wouldn't&amp;nbsp;recommend it unless you have a very compelling reason not to just use the field calculator.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Nov 2017 19:36:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/add-a-value-automatically-in-the-field/m-p/586132#M46001</guid>
      <dc:creator>JamesMacKay3</dc:creator>
      <dc:date>2017-11-20T19:36:56Z</dc:date>
    </item>
    <item>
      <title>Re:  Add a value automatically in the field</title>
      <link>https://community.esri.com/t5/python-questions/add-a-value-automatically-in-the-field/m-p/586133#M46002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It might be worth looking into &lt;A class="link-titled" href="http://solutions.arcgis.com/shared/help/attribute-assistant/" title="http://solutions.arcgis.com/shared/help/attribute-assistant/"&gt;Attribute Assistant | ArcGIS Solutions&lt;/A&gt;&amp;nbsp; if you haven't already.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Nov 2017 22:00:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/add-a-value-automatically-in-the-field/m-p/586133#M46002</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2017-11-20T22:00:09Z</dc:date>
    </item>
    <item>
      <title>Re:  Add a value automatically in the field</title>
      <link>https://community.esri.com/t5/python-questions/add-a-value-automatically-in-the-field/m-p/586134#M46003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And in Pro at 2.1 a new thing as part of the ArcGIS Utility Network Management extension will be introduced called Attribute Rules. I believe it will be available&amp;nbsp;for users without the&amp;nbsp;&lt;SPAN&gt;ArcGIS Utility Network Management extension&amp;nbsp;too (not completely sure though) and it will use Arcade&amp;nbsp;expressions and can do a lot more than just populate a field based on other attributes. It will not be available for ArcMap.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Nov 2017 13:00:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/add-a-value-automatically-in-the-field/m-p/586134#M46003</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2017-11-21T13:00:34Z</dc:date>
    </item>
    <item>
      <title>Re:  Add a value automatically in the field</title>
      <link>https://community.esri.com/t5/python-questions/add-a-value-automatically-in-the-field/m-p/586135#M46004</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could probably just create a python add-in extension and implement the openDocument event to fire.&amp;nbsp; I'd check the TOC if the layer you want to process is loaded and if not, load it then process it as desired.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://desktop.arcgis.com/en/arcmap/latest/analyze/python-addins/creating-an-add-in-application-extension.htm"&gt;http://desktop.arcgis.com/en/arcmap/latest/analyze/python-addins/creating-an-add-in-application-extension.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Nov 2017 15:37:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/add-a-value-automatically-in-the-field/m-p/586135#M46004</guid>
      <dc:creator>JamesCrandall</dc:creator>
      <dc:date>2017-11-21T15:37:19Z</dc:date>
    </item>
    <item>
      <title>Re: Add a value automatically in the field</title>
      <link>https://community.esri.com/t5/python-questions/add-a-value-automatically-in-the-field/m-p/586136#M46005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So from the above suggestions, you have many options.&amp;nbsp; How important is it that this be an integral part of your workflow?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Nov 2017 19:54:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/add-a-value-automatically-in-the-field/m-p/586136#M46005</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-11-21T19:54:36Z</dc:date>
    </item>
    <item>
      <title>Re:  Add a value automatically in the field</title>
      <link>https://community.esri.com/t5/python-questions/add-a-value-automatically-in-the-field/m-p/586137#M46006</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use Attribute Rules in ArcGIS Pro to add a Calculation rule using the Arcade scripting language.&lt;/P&gt;&lt;P&gt;To add a new Calculation rule use the geoprocessing tool '&lt;A href="https://pro.arcgis.com/en/pro-app/tool-reference/data-management/add-attribute-rule.htm"&gt;Add Attribute Rule'&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;You can learn more about Arcade &lt;A href="https://developers.arcgis.com/arcade/"&gt;here&lt;/A&gt;&amp;nbsp;and find useful examples of calculation fields here.&lt;/P&gt;&lt;P&gt;For your example it should look something like this:&lt;/P&gt;&lt;P style="text-align: center;"&gt;&lt;STRONG&gt;$feature.&lt;SPAN style="background-color: #ffffff;"&gt;Building_number + $feature.Street_number&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;You can define the rule to run when you Insert and modify the feature.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;More string manipulation can be found &lt;A href="https://developers.arcgis.com/arcade/function-reference/text_functions/"&gt;here&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are using ArcMap or File geodatabase you can use the Attribute Assistant Add-In from&amp;nbsp;&lt;A class="link-titled" href="https://solutions.arcgis.com/shared/help/attribute-assistant/" title="https://solutions.arcgis.com/shared/help/attribute-assistant/"&gt;Attribute Assistant | ArcGIS Solutions&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2018 08:21:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/add-a-value-automatically-in-the-field/m-p/586137#M46006</guid>
      <dc:creator>AmirBar-Maor</dc:creator>
      <dc:date>2018-08-02T08:21:23Z</dc:date>
    </item>
    <item>
      <title>Re:  Add a value automatically in the field</title>
      <link>https://community.esri.com/t5/python-questions/add-a-value-automatically-in-the-field/m-p/586138#M46007</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;EM&gt;&lt;STRONG&gt;Use Attribute Rules in ArcGIS Pro to add a Calculation rule using the Arcade scripting language&lt;/STRONG&gt;&lt;/EM&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Just remember that:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="background-color: #ffffff; : ; color: #4c4c4c;"&gt;Attribute rules are only supported on enterprise geodatabase datasets.&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #4c4c4c;"&gt;and&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #4c4c4c;"&gt;&lt;EM&gt;&lt;SPAN style="background-color: #f8f8f8;"&gt;Once you have added attribute rules to a dataset, the minimum client version for the dataset is&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="background-color: #f8f8f8;"&gt;ArcGIS Pro&lt;/SPAN&gt;&lt;SPAN style="background-color: #f8f8f8;"&gt;&amp;nbsp;2.1. This means that the dataset will no longer be available for use in&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="background-color: #f8f8f8;"&gt;ArcGIS Desktop&lt;/SPAN&gt;&lt;/EM&gt;&lt;SPAN style="background-color: #f8f8f8;"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f8f8f8; color: #4c4c4c;"&gt;(&lt;A class="link-titled" href="https://pro.arcgis.com/en/pro-app/tool-reference/data-management/add-attribute-rule.htm" title="https://pro.arcgis.com/en/pro-app/tool-reference/data-management/add-attribute-rule.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;Add Attribute Rule—Data Management toolbox | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f8f8f8; color: #4c4c4c;"&gt;&lt;A href="https://community.esri.com/ideas/15235" target="_blank"&gt;https://community.esri.com/ideas/15235&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jun 2021 08:39:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/add-a-value-automatically-in-the-field/m-p/586138#M46007</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2021-06-22T08:39:01Z</dc:date>
    </item>
    <item>
      <title>Re:  Add a value automatically in the field</title>
      <link>https://community.esri.com/t5/python-questions/add-a-value-automatically-in-the-field/m-p/586139#M46008</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Joe,&lt;/P&gt;&lt;P&gt;ArcGIS Pro is part of ArcGIS Desktop. ArcGIS Desktop includes ArcMap, ArcCatalog, ArcScene, ArcGlobe... and ArcGIS Pro.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2018 11:44:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/add-a-value-automatically-in-the-field/m-p/586139#M46008</guid>
      <dc:creator>AmirBar-Maor</dc:creator>
      <dc:date>2018-08-02T11:44:30Z</dc:date>
    </item>
    <item>
      <title>Re:  Add a value automatically in the field</title>
      <link>https://community.esri.com/t5/python-questions/add-a-value-automatically-in-the-field/m-p/586140#M46009</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think Joe is aware of that, it is the pointing out that the dataset will no longer be available for use in Desktop.&lt;/P&gt;&lt;P&gt;Some people have missed that fine point I am sure and have had to deal with the consequences.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2018 11:55:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/add-a-value-automatically-in-the-field/m-p/586140#M46009</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2018-08-02T11:55:24Z</dc:date>
    </item>
  </channel>
</rss>

