<?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: Help With Copying Code From ArcMap VBA Editor to ArcGIS Pro SDK in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/help-with-copying-code-from-arcmap-vba-editor-to/m-p/1389101#M11178</link>
    <description>&lt;P&gt;I feel your pain, I am converting ArcObjects C# code to Pro SDK C# using Visual Studio. In my case, I started by creating an add-in button following this example.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/documentation/arcgis-add-ins-and-automation/arcgis-pro/tutorials/build-your-first-add-in/" target="_blank"&gt;Build your first add-in | Documentation | ArcGIS Developers&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Once I had the button, I added a new class in Visual Studio and copied/pasted my original code one function/method at a time into it. Since Visual Studio highlights compile conflicts for you in red, for each method/function, I looked in the ESRI github repository as well as Google searches for a Pro function that would do the same thing. Here are some examples&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Esri/arcgis-pro-sdk/wiki/ProSnippets#layouts-snippets" target="_blank"&gt;ProSnippets · Esri/arcgis-pro-sdk Wiki · GitHub&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/sdk/" target="_blank"&gt;ArcGIS Pro SDK | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/documentation/arcgis-add-ins-and-automation/arcgis-pro/" target="_blank"&gt;ArcGIS Pro SDK for .NET | Documentation | ArcGIS Developers&lt;/A&gt;&lt;/P&gt;&lt;P&gt;As you can imagine, this was very time consuming but after one solid month of this, I got to the point where I could run the code. I am still struggling with getting some of the stuff to work correctly but now it's just a matter of the Pro SDK learning curve.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this helps you in some small way.&lt;/P&gt;&lt;P&gt;Carlos&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 29 Feb 2024 20:41:48 GMT</pubDate>
    <dc:creator>CarlosPiccirillo2</dc:creator>
    <dc:date>2024-02-29T20:41:48Z</dc:date>
    <item>
      <title>Help With Copying Code From ArcMap VBA Editor to ArcGIS Pro SDK</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/help-with-copying-code-from-arcmap-vba-editor-to/m-p/1389001#M11177</link>
      <description>&lt;P&gt;I want to copy this code for a tool that runs like a geo-processing tool for water flow.&lt;/P&gt;&lt;P&gt;I'm moving from ArcMap VBA Editor to Pro SDK from MS Visual Studio using ArcGIS Pro based on these ESRI articles:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.esri.com/arcgis-blog/products/3d-gis/3d-gis/arcgis-desktop-and-vba-moving-forward/" target="_blank" rel="noopener"&gt;ArcGIS Desktop and VBA Moving Forward (esri.com)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.esri.com/news/arcuser/0311/recycling-vba.html" target="_blank" rel="noopener"&gt;Recycling VBA (esri.com)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I'm a little unsure how to do this. I have some screen shots of the code and my progress. Thank you!&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AndrewV96_0-1709231003113.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/96344iCBE169DCD09B5232/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AndrewV96_0-1709231003113.png" alt="AndrewV96_0-1709231003113.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AndrewV96_1-1709231030975.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/96345i8222141AF3FB7D57/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AndrewV96_1-1709231030975.png" alt="AndrewV96_1-1709231030975.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Feb 2024 18:25:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/help-with-copying-code-from-arcmap-vba-editor-to/m-p/1389001#M11177</guid>
      <dc:creator>AndrewV96</dc:creator>
      <dc:date>2024-02-29T18:25:58Z</dc:date>
    </item>
    <item>
      <title>Re: Help With Copying Code From ArcMap VBA Editor to ArcGIS Pro SDK</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/help-with-copying-code-from-arcmap-vba-editor-to/m-p/1389101#M11178</link>
      <description>&lt;P&gt;I feel your pain, I am converting ArcObjects C# code to Pro SDK C# using Visual Studio. In my case, I started by creating an add-in button following this example.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/documentation/arcgis-add-ins-and-automation/arcgis-pro/tutorials/build-your-first-add-in/" target="_blank"&gt;Build your first add-in | Documentation | ArcGIS Developers&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Once I had the button, I added a new class in Visual Studio and copied/pasted my original code one function/method at a time into it. Since Visual Studio highlights compile conflicts for you in red, for each method/function, I looked in the ESRI github repository as well as Google searches for a Pro function that would do the same thing. Here are some examples&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Esri/arcgis-pro-sdk/wiki/ProSnippets#layouts-snippets" target="_blank"&gt;ProSnippets · Esri/arcgis-pro-sdk Wiki · GitHub&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/sdk/" target="_blank"&gt;ArcGIS Pro SDK | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/documentation/arcgis-add-ins-and-automation/arcgis-pro/" target="_blank"&gt;ArcGIS Pro SDK for .NET | Documentation | ArcGIS Developers&lt;/A&gt;&lt;/P&gt;&lt;P&gt;As you can imagine, this was very time consuming but after one solid month of this, I got to the point where I could run the code. I am still struggling with getting some of the stuff to work correctly but now it's just a matter of the Pro SDK learning curve.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this helps you in some small way.&lt;/P&gt;&lt;P&gt;Carlos&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Feb 2024 20:41:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/help-with-copying-code-from-arcmap-vba-editor-to/m-p/1389101#M11178</guid>
      <dc:creator>CarlosPiccirillo2</dc:creator>
      <dc:date>2024-02-29T20:41:48Z</dc:date>
    </item>
    <item>
      <title>Re: Help With Copying Code From ArcMap VBA Editor to ArcGIS Pro SDK</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/help-with-copying-code-from-arcmap-vba-editor-to/m-p/1391246#M11195</link>
      <description>&lt;P&gt;Thanks a lot for your help Carlos. I got a lot of errors about "Set" and "Let" not being valid. Online I see to omit it but it seems like that could cause more errors:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AndrewV96_0-1709656317389.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/96902i5E58F4E9B2BECF87/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AndrewV96_0-1709656317389.png" alt="AndrewV96_0-1709656317389.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2024 16:32:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/help-with-copying-code-from-arcmap-vba-editor-to/m-p/1391246#M11195</guid>
      <dc:creator>AndrewV96</dc:creator>
      <dc:date>2024-03-05T16:32:22Z</dc:date>
    </item>
  </channel>
</rss>

