<?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 Geoprocess Progress in foreground in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/geoprocess-progress-in-foreground/m-p/273328#M6976</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I execute programmatically (vb.net) a geoprocess from the toolbox. In ArcMap I have a commandbutton that execute this geoprocess-tool. If I start this tool from toolbox, I get the progress dialog, but when I start this tool programmatically I get no feetback - why?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;Dim gp As ESRI.ArcGIS.Geoprocessing.IGeoProcessor2 = New ESRI.ArcGIS.Geoprocessing.GeoProcessor
Dim pVariantArray As ESRI.ArcGIS.esriSystem.IVariantArray = New ESRI.ArcGIS.esriSystem.VarArray
Dim pTrackCancel As ESRI.ArcGIS.esriSystem.ITrackCancel = New ESRI.ArcGIS.Display.CancelTracker
pTrackCancel.CancelOnClick = True
pVariantArray.Add(pWorkspace)
gp.LogHistory = True
gp.Execute(sToolname, pVariantArray, pTrackCancel)&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for answers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Anton&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 16:16:15 GMT</pubDate>
    <dc:creator>AntonSeiler</dc:creator>
    <dc:date>2021-12-12T16:16:15Z</dc:date>
    <item>
      <title>Geoprocess Progress in foreground</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/geoprocess-progress-in-foreground/m-p/273328#M6976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I execute programmatically (vb.net) a geoprocess from the toolbox. In ArcMap I have a commandbutton that execute this geoprocess-tool. If I start this tool from toolbox, I get the progress dialog, but when I start this tool programmatically I get no feetback - why?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;Dim gp As ESRI.ArcGIS.Geoprocessing.IGeoProcessor2 = New ESRI.ArcGIS.Geoprocessing.GeoProcessor
Dim pVariantArray As ESRI.ArcGIS.esriSystem.IVariantArray = New ESRI.ArcGIS.esriSystem.VarArray
Dim pTrackCancel As ESRI.ArcGIS.esriSystem.ITrackCancel = New ESRI.ArcGIS.Display.CancelTracker
pTrackCancel.CancelOnClick = True
pVariantArray.Add(pWorkspace)
gp.LogHistory = True
gp.Execute(sToolname, pVariantArray, pTrackCancel)&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for answers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Anton&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 16:16:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/geoprocess-progress-in-foreground/m-p/273328#M6976</guid>
      <dc:creator>AntonSeiler</dc:creator>
      <dc:date>2021-12-12T16:16:15Z</dc:date>
    </item>
    <item>
      <title>Re: Geoprocess Progress in foreground</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/geoprocess-progress-in-foreground/m-p/273329#M6977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;gp.message&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Mar 2011 14:06:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/geoprocess-progress-in-foreground/m-p/273329#M6977</guid>
      <dc:creator>MichaelRobb</dc:creator>
      <dc:date>2011-03-25T14:06:22Z</dc:date>
    </item>
    <item>
      <title>Re: Geoprocess Progress in foreground</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/geoprocess-progress-in-foreground/m-p/273330#M6978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt; Hello,&amp;nbsp; &lt;BR /&gt; &lt;BR /&gt;I execute programmatically (vb.net) a geoprocess from the toolbox. In ArcMap I have a commandbutton that execute this geoprocess-tool. If I start this tool from toolbox, I get the progress dialog, but when I start this tool programmatically I get no feetback - why?&amp;nbsp; &lt;BR /&gt; &lt;BR /&gt; &lt;SPAN style="font-family:&amp;quot;Courier New&amp;quot;;"&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;Dim gp As ESRI.ArcGIS.Geoprocessing.IGeoProcessor2 = New ESRI.ArcGIS.Geoprocessing.GeoProcessor
Dim pVariantArray As ESRI.ArcGIS.esriSystem.IVariantArray = New ESRI.ArcGIS.esriSystem.VarArray
Dim pTrackCancel As ESRI.ArcGIS.esriSystem.ITrackCancel = New ESRI.ArcGIS.Display.CancelTracker
pTrackCancel.CancelOnClick = True
pVariantArray.Add(pWorkspace)
gp.LogHistory = True
gp.Execute(sToolname, pVariantArray, pTrackCancel)&lt;/PRE&gt;&lt;BR /&gt;&lt;/SPAN&gt; &lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt;Thanks for answers,&amp;nbsp; &lt;BR /&gt;Anton&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please try the below code sample...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim pProDlg As IProgressDialog2&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim pTrkCan As ESRI.ArcGIS.esriSystem.ITrackCancel&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim pProDlgFact As IProgressDialogFactory&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;â?? Create a CancelTracker, required, even though we cannot use it..&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;pTrkCan = New CancelTracker&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;' Create the ProgressDialog. This automatically displays the dialog&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;pProDlgFact = New ProgressDialogFactory&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;pProDlg = pProDlgFact.Create(Nothing, 0) 'Application.hWnd)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;' Set the properties of the ProgressDialog&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;'pProDlg.CancelEnabled = True&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;pProDlg.Description = "Please wait till this Window closes" &amp;amp; vbNewLine &amp;amp; "Do not try to close this window"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;pProDlg.Title = "Process: Copy Raster..."&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;pProDlg.Animation = esriProgressAnimationTypes.esriProgressGlobe&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;GeoProcessing Task&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;pProDlg.HideDialog()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;pTrkCan = Nothing&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;pProDlg = Nothing&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 13:20:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/geoprocess-progress-in-foreground/m-p/273330#M6978</guid>
      <dc:creator>VivekPrasad</dc:creator>
      <dc:date>2021-12-11T13:20:50Z</dc:date>
    </item>
  </channel>
</rss>

