<?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: Edit an Arcmap Script to be used in ArcGIS Pro in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/edit-an-arcmap-script-to-be-used-in-arcgis-pro/m-p/1407269#M81592</link>
    <description>&lt;P&gt;Do the two fields have coded value domains? If so, modify the script so it looks for and sets the coded value.&lt;/P&gt;&lt;P&gt;SO, instead of looking for "FUERTE", look for 6, and instead of setting the value of "&amp;gt;40 - 70%", set the value of 6.&lt;/P&gt;&lt;P&gt;Check the fields to determine the data type. For text codes, use "6" in quotation marks, and for integer codes use the value 6 without quotation marks.&lt;/P&gt;</description>
    <pubDate>Mon, 08 Apr 2024 20:02:17 GMT</pubDate>
    <dc:creator>BobBooth1</dc:creator>
    <dc:date>2024-04-08T20:02:17Z</dc:date>
    <item>
      <title>Edit an Arcmap Script to be used in ArcGIS Pro</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/edit-an-arcmap-script-to-be-used-in-arcgis-pro/m-p/1405403#M81393</link>
      <description>&lt;P&gt;Hello everyone, I need to run an ArcMap script (VBScript) in ArcGis Pro, but I get an error. Do you know why it gives me that problem? Kind regards.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Apr 2024 19:10:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/edit-an-arcmap-script-to-be-used-in-arcgis-pro/m-p/1405403#M81393</guid>
      <dc:creator>JairoCordero</dc:creator>
      <dc:date>2024-04-03T19:10:26Z</dc:date>
    </item>
    <item>
      <title>Re: Edit an Arcmap Script to be used in ArcGIS Pro</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/edit-an-arcmap-script-to-be-used-in-arcgis-pro/m-p/1405404#M81394</link>
      <description>&lt;P&gt;can you convert the script to Python? I never could get vbScripts to work in ArcGIS Pro.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Apr 2024 19:13:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/edit-an-arcmap-script-to-be-used-in-arcgis-pro/m-p/1405404#M81394</guid>
      <dc:creator>SLouq</dc:creator>
      <dc:date>2024-04-03T19:13:41Z</dc:date>
    </item>
    <item>
      <title>Re: Edit an Arcmap Script to be used in ArcGIS Pro</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/edit-an-arcmap-script-to-be-used-in-arcgis-pro/m-p/1405441#M81404</link>
      <description>&lt;P&gt;Can you &lt;A href="https://community.esri.com/t5/community-help-documents/how-to-insert-code-in-your-post/ta-p/914552" target="_self"&gt;post&lt;/A&gt; your script?&lt;/P&gt;</description>
      <pubDate>Wed, 03 Apr 2024 20:06:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/edit-an-arcmap-script-to-be-used-in-arcgis-pro/m-p/1405441#M81404</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2024-04-03T20:06:44Z</dc:date>
    </item>
    <item>
      <title>Re: Edit an Arcmap Script to be used in ArcGIS Pro</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/edit-an-arcmap-script-to-be-used-in-arcgis-pro/m-p/1405546#M81436</link>
      <description>&lt;P&gt;FYI, vbscript was only implemented in ArcGIS Pro as of version 3.2.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/arcgis-pro-ideas/support-vb-expressions-in-calculate-field/idi-p/1142078" target="_self"&gt;Support VB expressions in Calculate Field&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Apr 2024 01:15:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/edit-an-arcmap-script-to-be-used-in-arcgis-pro/m-p/1405546#M81436</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2024-04-04T01:15:33Z</dc:date>
    </item>
    <item>
      <title>Re: Edit an Arcmap Script to be used in ArcGIS Pro</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/edit-an-arcmap-script-to-be-used-in-arcgis-pro/m-p/1405689#M81449</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JairoCordero_0-1712235709827.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/100004i52AAE39DED0171E4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JairoCordero_0-1712235709827.png" alt="JairoCordero_0-1712235709827.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This is the full script, and yes, I am using version 3.2. I want to adapt it to the Arcgis pro 3.2 version.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Apr 2024 13:07:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/edit-an-arcmap-script-to-be-used-in-arcgis-pro/m-p/1405689#M81449</guid>
      <dc:creator>JairoCordero</dc:creator>
      <dc:date>2024-04-04T13:07:30Z</dc:date>
    </item>
    <item>
      <title>Re: Edit an Arcmap Script to be used in ArcGIS Pro</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/edit-an-arcmap-script-to-be-used-in-arcgis-pro/m-p/1405726#M81453</link>
      <description>&lt;P&gt;This looks like a conditional field calculation.&lt;/P&gt;&lt;P&gt;You can rebuild it in Python. See the examples here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/3.1/tool-reference/data-management/calculate-field-examples.htm" target="_blank"&gt;https://pro.arcgis.com/en/pro-app/3.1/tool-reference/data-management/calculate-field-examples.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Here is a link to a bit of a tutorial showing a similar field calculation:&lt;/P&gt;&lt;P&gt;&lt;A href="https://learn.arcgis.com/en/projects/identify-schools-for-a-mentoring-program/#:~:text=use%20a%20field%20calculation%20to%20set%20the%20values" target="_blank"&gt;https://learn.arcgis.com/en/projects/identify-schools-for-a-mentoring-program/#:~:text=use%20a%20field%20calculation%20to%20set%20the%20values&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Apr 2024 14:00:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/edit-an-arcmap-script-to-be-used-in-arcgis-pro/m-p/1405726#M81453</guid>
      <dc:creator>BobBooth1</dc:creator>
      <dc:date>2024-04-04T14:00:08Z</dc:date>
    </item>
    <item>
      <title>Re: Edit an Arcmap Script to be used in ArcGIS Pro</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/edit-an-arcmap-script-to-be-used-in-arcgis-pro/m-p/1405773#M81458</link>
      <description>&lt;P&gt;Hello, I'm not a programmer so I don't know what commands to use. There will be the possibility that you can help me by modifying just one part, from there I think I know how to modify the rest. I would be very grateful to you. Kind regards.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Apr 2024 15:13:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/edit-an-arcmap-script-to-be-used-in-arcgis-pro/m-p/1405773#M81458</guid>
      <dc:creator>JairoCordero</dc:creator>
      <dc:date>2024-04-04T15:13:03Z</dc:date>
    </item>
    <item>
      <title>Re: Edit an Arcmap Script to be used in ArcGIS Pro</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/edit-an-arcmap-script-to-be-used-in-arcgis-pro/m-p/1407100#M81573</link>
      <description>&lt;P&gt;Hi Jairo,&lt;/P&gt;&lt;P&gt;So, It looked like your code just checked the values in a field and returned the same values. I'm not sure why you were doing that.&lt;/P&gt;&lt;P&gt;You can do a conditional field calculation like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="conditional_calc_a.png" style="width: 762px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/100338i3D16DA85A68BF294/image-size/large?v=v2&amp;amp;px=999" role="button" title="conditional_calc_a.png" alt="conditional_calc_a.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This example shows two text fields with string representations of numbers between 1 and 10, and some 998 values. If the value in the source field, "A_field" is equal to "1" or "2" it returns those values to the target field ("A_second_field"), and if it is "998" it returns "998".&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A Python function, that I named "my_conditional" takes a single variable parameter (the source field) and returns some values using conditional evaluation.&lt;/P&gt;&lt;P&gt;The result is:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="conditional_calc_a_result.png" style="width: 174px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/100339i9D31304CE7F89D2F/image-size/large?v=v2&amp;amp;px=999" role="button" title="conditional_calc_a_result.png" alt="conditional_calc_a_result.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Notice that values of 1, 2, and 998 get added to the target field, and the other rows have their original value of &amp;lt;Null&amp;gt;.&lt;/P&gt;&lt;P&gt;Another thing you could do calculate all of the values in the second field to be the same as the values in the source field. You don't need any Python code for this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Calc_no_cond_b.png" style="width: 699px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/100340iE088A20496700BD4/image-size/large?v=v2&amp;amp;px=999" role="button" title="Calc_no_cond_b.png" alt="Calc_no_cond_b.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The result is:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Calc_no_cond_b_result.png" style="width: 184px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/100341iC8EA27A1D9B75EC7/image-size/large?v=v2&amp;amp;px=999" role="button" title="Calc_no_cond_b_result.png" alt="Calc_no_cond_b_result.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Another thing you might do is use Python to convert integer values in one field to string values in the target field. Here I convert the integer values form OBJECTID field into strings in the target field:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="calc_integer_value_to_string_value.png" style="width: 553px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/100343i5B9948CAF12DBACA/image-size/large?v=v2&amp;amp;px=999" role="button" title="calc_integer_value_to_string_value.png" alt="calc_integer_value_to_string_value.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That tutorial I gave you a link for shows step-by-step how to add a new function and use it to calculate values.&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Bob&lt;/P&gt;</description>
      <pubDate>Mon, 08 Apr 2024 12:59:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/edit-an-arcmap-script-to-be-used-in-arcgis-pro/m-p/1407100#M81573</guid>
      <dc:creator>BobBooth1</dc:creator>
      <dc:date>2024-04-08T12:59:02Z</dc:date>
    </item>
    <item>
      <title>Re: Edit an Arcmap Script to be used in ArcGIS Pro</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/edit-an-arcmap-script-to-be-used-in-arcgis-pro/m-p/1407221#M81586</link>
      <description>&lt;P&gt;Hello Bob,&lt;BR /&gt;I'll explain it to you another way, I'm using a cataloged GDB that has two fields: RPDT and DECS_RPDT.&lt;/P&gt;&lt;P&gt;This "RPDT" field contains slope ranges used in Geomorphology, and the other field "DECS_RPDT" contains the text that corresponds to the ranges contained in the "RPDT" field. (see image 1).&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JairoCordero_0-1712597272347.jpeg" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/100375i4D75746A5F3750C0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JairoCordero_0-1712597272347.jpeg" alt="JairoCordero_0-1712597272347.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I do the photointerpretation, I enter the range of the "RPDT" slope, and the script instead, when I execute it, adds the qualitative value that corresponds to each range. (see image 2).&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JairoCordero_1-1712597287742.jpeg" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/100376i54DE3E1EF999ABD0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JairoCordero_1-1712597287742.jpeg" alt="JairoCordero_1-1712597287742.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hence, it is not as you indicated above, that I copy the same value into another field.&lt;/P&gt;&lt;P&gt;Seriously, I am very grateful to you, I already copied it with all the values, but it fills the "DECS_RPDT" field as NULL.&lt;/P&gt;&lt;P&gt;I hope it's clearer, and sorry for the inconvenience.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Apr 2024 17:31:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/edit-an-arcmap-script-to-be-used-in-arcgis-pro/m-p/1407221#M81586</guid>
      <dc:creator>JairoCordero</dc:creator>
      <dc:date>2024-04-08T17:31:11Z</dc:date>
    </item>
    <item>
      <title>Re: Edit an Arcmap Script to be used in ArcGIS Pro</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/edit-an-arcmap-script-to-be-used-in-arcgis-pro/m-p/1407269#M81592</link>
      <description>&lt;P&gt;Do the two fields have coded value domains? If so, modify the script so it looks for and sets the coded value.&lt;/P&gt;&lt;P&gt;SO, instead of looking for "FUERTE", look for 6, and instead of setting the value of "&amp;gt;40 - 70%", set the value of 6.&lt;/P&gt;&lt;P&gt;Check the fields to determine the data type. For text codes, use "6" in quotation marks, and for integer codes use the value 6 without quotation marks.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Apr 2024 20:02:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/edit-an-arcmap-script-to-be-used-in-arcgis-pro/m-p/1407269#M81592</guid>
      <dc:creator>BobBooth1</dc:creator>
      <dc:date>2024-04-08T20:02:17Z</dc:date>
    </item>
  </channel>
</rss>

