<?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 Visual Basic call tools from ArcGIS Toolbox for Geoprocessing Conversion Tools in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/visual-basic-call-tools-from-arcgis-toolbox-for/m-p/1259203#M65663</link>
    <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;I am using an updated MS Access database which has an historical legacy for data input in an organisation (there is still historical information to input) I am working for. the database calls a conversion tool from the ArcGIS Toolbox for Geoprocessing. However, this code does not appear to be working. Have seen the following article, although no solution here (see additional PDF attached is there a solution here?):&lt;/P&gt;&lt;P&gt;&lt;A href="https://gis.stackexchange.com/questions/10801/call-tools-from-arctoolbox-in-vba-form" target="_blank"&gt;https://gis.stackexchange.com/questions/10801/call-tools-from-arctoolbox-in-vba-form&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Below is the VB code (see attached document as well):&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" color="#0000FF"&gt;Private Sub Label38_Click()&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="3" color="#0000FF"&gt;' ---------------------------------------------------------------------------&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="3" color="#0000FF"&gt;' OGW All Projects export&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="3" color="#0000FF"&gt;' ---------------------------------------------------------------------------&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT size="3" color="#0000FF"&gt;' Create the Geoprocessor object&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="3" color="#0000FF"&gt;Set gp = CreateObject("esriGeoprocessing.GPDispatch.1")&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" color="#0000FF"&gt;' Load required toolboxes...&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="3" color="#0000FF"&gt;gp.AddToolbox "C:\Program Files\ArcGIS\Pro\Resources\ArcToolBox\toolboxes\Conversion Tools.tbx"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" color="#0000FF"&gt;' Script arguments...&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="3" color="#0000FF"&gt;'OGWReporting_mdb = Arguments.Item(0)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="3" color="#0000FF"&gt;'if OGWReporting_mdb = "#" Then&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="3" color="#0000FF"&gt;OGWReporting_mdb = "I:\Database\OGW_Database\OGW_Reporting\AllOGWReporting.accdb" ' provide a default value if unspecified&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="3" color="#0000FF"&gt;'End If&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" color="#0000FF"&gt;' Local variables...&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="3" color="#0000FF"&gt;GWLAP_Funded_Works_lyr = "I:\Database\OGW_Database\OGW_Layers\Archives\All Works.lyr"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="3" color="#0000FF"&gt;GWLAP_Funded_Fence_Lines_lyr__2_ = "I:\Database\OGW_Database\OGW_Layers\Archives\All Fence Lines.lyr"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="3" color="#0000FF"&gt;Derived_Geodatabase = "I:\Database\OGW_Database\OGW_Reporting\AllOGWReporting.accdb"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" color="#0000FF"&gt;' Process: Feature Class to Geodatabase (multiple)...&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="3" color="#0000FF"&gt;gp.FeatureClassToGeodatabase.tool "'I:\Database\OGW_Database\OGW_Layers\Archives\All Works.lyr';'I:\Database\OGW_Database\OGW_Layers\Archives\All Fence Lines.lyr'", OGWReporting.accdb&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="3" color="#0000FF"&gt;'MsgBox "Complete"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" color="#0000FF"&gt;'End ESRI Model&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have updated the code to reflect the most recent versions of MS Access and ArcGIS any assistance would be much appreciated.&lt;/P&gt;&lt;P&gt;Many thanks, Davina&lt;/P&gt;</description>
    <pubDate>Mon, 20 Feb 2023 03:03:45 GMT</pubDate>
    <dc:creator>DavinaWhite</dc:creator>
    <dc:date>2023-02-20T03:03:45Z</dc:date>
    <item>
      <title>Visual Basic call tools from ArcGIS Toolbox for Geoprocessing Conversion Tools</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/visual-basic-call-tools-from-arcgis-toolbox-for/m-p/1259203#M65663</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;I am using an updated MS Access database which has an historical legacy for data input in an organisation (there is still historical information to input) I am working for. the database calls a conversion tool from the ArcGIS Toolbox for Geoprocessing. However, this code does not appear to be working. Have seen the following article, although no solution here (see additional PDF attached is there a solution here?):&lt;/P&gt;&lt;P&gt;&lt;A href="https://gis.stackexchange.com/questions/10801/call-tools-from-arctoolbox-in-vba-form" target="_blank"&gt;https://gis.stackexchange.com/questions/10801/call-tools-from-arctoolbox-in-vba-form&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Below is the VB code (see attached document as well):&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" color="#0000FF"&gt;Private Sub Label38_Click()&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="3" color="#0000FF"&gt;' ---------------------------------------------------------------------------&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="3" color="#0000FF"&gt;' OGW All Projects export&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="3" color="#0000FF"&gt;' ---------------------------------------------------------------------------&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT size="3" color="#0000FF"&gt;' Create the Geoprocessor object&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="3" color="#0000FF"&gt;Set gp = CreateObject("esriGeoprocessing.GPDispatch.1")&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" color="#0000FF"&gt;' Load required toolboxes...&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="3" color="#0000FF"&gt;gp.AddToolbox "C:\Program Files\ArcGIS\Pro\Resources\ArcToolBox\toolboxes\Conversion Tools.tbx"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" color="#0000FF"&gt;' Script arguments...&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="3" color="#0000FF"&gt;'OGWReporting_mdb = Arguments.Item(0)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="3" color="#0000FF"&gt;'if OGWReporting_mdb = "#" Then&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="3" color="#0000FF"&gt;OGWReporting_mdb = "I:\Database\OGW_Database\OGW_Reporting\AllOGWReporting.accdb" ' provide a default value if unspecified&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="3" color="#0000FF"&gt;'End If&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" color="#0000FF"&gt;' Local variables...&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="3" color="#0000FF"&gt;GWLAP_Funded_Works_lyr = "I:\Database\OGW_Database\OGW_Layers\Archives\All Works.lyr"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="3" color="#0000FF"&gt;GWLAP_Funded_Fence_Lines_lyr__2_ = "I:\Database\OGW_Database\OGW_Layers\Archives\All Fence Lines.lyr"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="3" color="#0000FF"&gt;Derived_Geodatabase = "I:\Database\OGW_Database\OGW_Reporting\AllOGWReporting.accdb"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" color="#0000FF"&gt;' Process: Feature Class to Geodatabase (multiple)...&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="3" color="#0000FF"&gt;gp.FeatureClassToGeodatabase.tool "'I:\Database\OGW_Database\OGW_Layers\Archives\All Works.lyr';'I:\Database\OGW_Database\OGW_Layers\Archives\All Fence Lines.lyr'", OGWReporting.accdb&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="3" color="#0000FF"&gt;'MsgBox "Complete"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" color="#0000FF"&gt;'End ESRI Model&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have updated the code to reflect the most recent versions of MS Access and ArcGIS any assistance would be much appreciated.&lt;/P&gt;&lt;P&gt;Many thanks, Davina&lt;/P&gt;</description>
      <pubDate>Mon, 20 Feb 2023 03:03:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/visual-basic-call-tools-from-arcgis-toolbox-for/m-p/1259203#M65663</guid>
      <dc:creator>DavinaWhite</dc:creator>
      <dc:date>2023-02-20T03:03:45Z</dc:date>
    </item>
  </channel>
</rss>

