<?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: Proper parameter value for Geoprocessing Tool managment.Delete in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/proper-parameter-value-for-geoprocessing-tool/m-p/832114#M3377</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;H4&gt;Thanks&lt;STRONG&gt; for your input Curtis.&amp;nbsp; I have tried numerous strategies to&amp;nbsp;clean up the intermediate raster files with limited results.&amp;nbsp; I changed the raster type to .tif and attempted to remove the intermediate files with an operating system delete.&amp;nbsp; This works for the initial files, but encounters locks on the later ones and throws a message the files are being used by ArcPro&lt;/STRONG&gt;.&lt;/H4&gt;&lt;P&gt;&lt;/P&gt;&lt;H4&gt;I long for the 'old' days when you could simply delete a dataset such as:&lt;/H4&gt;&lt;P&gt;&lt;/P&gt;&lt;H4&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IWorkspace pWorkspace = (IWorkspace)ws;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IEnumDataset pEnumDataset = pWorkspace.get_Datasets(esriDatasetType.esriDTRasterDataset);&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IDataset pDS;&lt;/EM&gt;&lt;/H4&gt;&lt;P&gt;&lt;/P&gt;&lt;H4&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; try&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pDS = pEnumDataset.Next();&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; while (pDS != null)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (ListOfGridNamesToRemove.Contains(pDS.Name))&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pDS.Delete();&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pDS = pEnumDataset.Next();&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; catch (Exception ex)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RemoveGRIDSListErr.Add(ex.Message);&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/EM&gt;&lt;/H4&gt;&lt;P&gt;&lt;/P&gt;&lt;H4&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.Runtime.InteropServices.Marshal.ReleaseComObject(pWorkspace);&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.Runtime.InteropServices.Marshal.ReleaseComObject(pEnumDataset);&lt;/EM&gt;&lt;/H4&gt;&lt;H4&gt;&lt;/H4&gt;&lt;P&gt;&lt;/P&gt;&lt;H4&gt;In the Pro SDK, I have not found any object based method that allows this. I understand the&amp;nbsp;Pro&lt;BR /&gt;paradigm is to call tools to perform these tasks.&amp;nbsp; Unfortunately, I have not been able to get the "management.delete" tool to behave from code.&amp;nbsp; Additionally, I am finding in some instances, the geoprocessing tools performance is quite poor compared to their ArcObjects equivalent object methods. Look for an upcoming forum post regarding the raster 'Flip' command.&amp;nbsp; This poor performance is seen running the tool natively as well through code.&lt;/H4&gt;&lt;H4&gt;&lt;/H4&gt;&lt;H4&gt;Perhaps, this delete issue might have to wait for the developer's summit.&amp;nbsp;&amp;nbsp;&amp;nbsp; I will update when I gain more insight as to how this process should work.&lt;/H4&gt;&lt;H4&gt;&lt;/H4&gt;&lt;H4&gt;&lt;/H4&gt;&lt;H4&gt;Thanks again to everyone for their input.&lt;/H4&gt;&lt;H4&gt;&lt;/H4&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Oct 2017 15:16:49 GMT</pubDate>
    <dc:creator>ThomasCox</dc:creator>
    <dc:date>2017-10-12T15:16:49Z</dc:date>
    <item>
      <title>Proper parameter value for Geoprocessing Tool managment.Delete</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/proper-parameter-value-for-geoprocessing-tool/m-p/832105#M3368</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am looking for a code example for executing the Geoprocessing tool "management.Delete".&amp;nbsp; I need to delete esri GRIDs that are created during processing in Pro.&amp;nbsp; I am not clear as to what parameter to pass.&amp;nbsp; I have looked the tool help that references input data elements.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I have tried raster datasets, raster layers.&amp;nbsp; When I pass a raster layer, the tool appears to work in that the GPResults.IsFailed property comes back false.&amp;nbsp; However, the GRID still resides on disk as a folder name and has its component files still present.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I have run the tool interactively in Pro.&amp;nbsp; It allows me to browse to the GRID, select it, and then run the command successfully.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I need to know what value to add to the parameters of the MakeValueArray as well as any syntax requirements.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Any assistance would be greatly appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Oct 2017 23:24:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/proper-parameter-value-for-geoprocessing-tool/m-p/832105#M3368</guid>
      <dc:creator>ThomasCox</dc:creator>
      <dc:date>2017-10-04T23:24:16Z</dc:date>
    </item>
    <item>
      <title>Re: Proper parameter value for Geoprocessing Tool managment.Delete</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/proper-parameter-value-for-geoprocessing-tool/m-p/832106#M3369</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the proper parameter would be a raster dataset... with the caveat that the raster can't be open or used by 'anything', hence it can't be a layer in ArcMap, even sketchy time if Windows explorer is touching it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Oct 2017 23:44:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/proper-parameter-value-for-geoprocessing-tool/m-p/832106#M3369</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-10-04T23:44:23Z</dc:date>
    </item>
    <item>
      <title>Re: Proper parameter value for Geoprocessing Tool managment.Delete</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/proper-parameter-value-for-geoprocessing-tool/m-p/832107#M3370</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Dan for your input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have spent a good bit of time trying to make this behave.&amp;nbsp; I have temporarily abandoned the effort to have the delete tool remove GRIDs that have been iteratively created during processing. Instead I have tried to run the tool programmatically against a GRID that has not been touched by the Pro Session.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried the rater dataset as a parameter.&amp;nbsp; The GPResults object IsFailed shows false.&amp;nbsp; However, when I look at the rest of the parameters of the Results.Messages, it indicates that the GRID I am after does not exist, it appears to ignore the _connectionPath property of the raster dataset.&amp;nbsp; I checked this during a run and found it be correctly populated.&amp;nbsp; The ugly screen shot below shows this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="RasterDataSet Properties Screen Shot" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/376020_RasterDataSet_ConnectionPath-ScreenShot.png" style="width: 620px; height: 279px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I execute the geoprocessing Delete tool, and examine the GResults, I see a warning message the GRID I am trying to delete does not exist.&amp;nbsp; The Delete tool does not seem to navigate the rasterdataset and use the _connectionPath.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="GeoProcess Results Delete Screen Shot" class="image-2 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/376025_GeoProcessingDeleteResults-ScreenShot.png" style="width: 620px; height: 83px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have looked at the Delete tool and note that it does not call for any environment settings.&amp;nbsp; I am generating the raster dataset directly from the directories, so the raster is never added to the Pro Session as a layer.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe I need to pass more to the ValueArrayList than just the raster dataset, but am not clear as to what.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="text-align: justify;"&gt;&lt;EM&gt;var parameters = Geoprocessing.MakeValueArray(pBasRasDataSet);&lt;/EM&gt;&lt;/P&gt;&lt;P style="text-align: justify;"&gt;&lt;EM&gt;var gpResults = await Geoprocessing.ExecuteToolAsync("management.Delete", parameters);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I look at the tool in Pro, it only calls for one parameter.&amp;nbsp; The following screen shot depicts this.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Delete Dialog from Pro" class="image-3 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/376026_DeleteToolScreenShot.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess the &lt;EM&gt;Input Data Element &lt;/EM&gt;is expecting more than I am providing in my code attempt to execute the tool.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am transitioning an ArcObjects application to Pro where I am able to remove GRIDS created during the&amp;nbsp;ArcMap session.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any input to resolve the error of my ways would be welcome.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Oct 2017 22:36:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/proper-parameter-value-for-geoprocessing-tool/m-p/832107#M3370</guid>
      <dc:creator>ThomasCox</dc:creator>
      <dc:date>2017-10-05T22:36:12Z</dc:date>
    </item>
    <item>
      <title>Re: Proper parameter value for Geoprocessing Tool managment.Delete</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/proper-parameter-value-for-geoprocessing-tool/m-p/832108#M3371</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The Environments settings is right beside the Parameters setting at the top.&amp;nbsp; You specify them in there.&lt;/P&gt;&lt;P&gt;As for the grids, they are wickedly long convoluted paths.&amp;nbsp; Can you on locally stored data in a simple folder?&amp;nbsp; esri grids are finicky, so you might want to try adding a *.tif to the rasters you are outputting since esri has moved to those as the default raster format.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Oct 2017 22:48:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/proper-parameter-value-for-geoprocessing-tool/m-p/832108#M3371</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-10-05T22:48:51Z</dc:date>
    </item>
    <item>
      <title>Re: Proper parameter value for Geoprocessing Tool managment.Delete</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/proper-parameter-value-for-geoprocessing-tool/m-p/832109#M3372</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks again for your input.&amp;nbsp; I guess I am unclear regarding the Environments setting regarding the Delete tool.&amp;nbsp; I did look at the Environments setting and it stated No Environments were necessary.&amp;nbsp; Migrating to the .tif would be a bit arduous, but perhaps I will have to down that road.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is a bit frustrating as the Pro interactive Delete tool doesn't struggle with any of it.&amp;nbsp; Perhaps one of our friends from esri could enlighten.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again Dan.&amp;nbsp; I know you are a strong contributor to the forum and I appreciate you taking the time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Oct 2017 22:57:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/proper-parameter-value-for-geoprocessing-tool/m-p/832109#M3372</guid>
      <dc:creator>ThomasCox</dc:creator>
      <dc:date>2017-10-05T22:57:13Z</dc:date>
    </item>
    <item>
      <title>Re: Proper parameter value for Geoprocessing Tool managment.Delete</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/proper-parameter-value-for-geoprocessing-tool/m-p/832110#M3373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I will reach out, but in the interim ... advice from &lt;A href="https://community.esri.com/people/curtvprice"&gt;curtvprice&lt;/A&gt;‌ and myself on &lt;A _jive_internal="true" href="https://community.esri.com/people/curtvprice/blog/2016/05/07/how-to-name-things-in-arcgis"&gt;&lt;STRONG&gt;How to Name Things in ArcGIS&lt;/STRONG&gt; &lt;/A&gt;... &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Oct 2017 23:07:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/proper-parameter-value-for-geoprocessing-tool/m-p/832110#M3373</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-10-05T23:07:15Z</dc:date>
    </item>
    <item>
      <title>Re: Proper parameter value for Geoprocessing Tool managment.Delete</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/proper-parameter-value-for-geoprocessing-tool/m-p/832111#M3374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;SPAN style="background-color: #ffffff;"&gt;When I pass a raster layer, the tool appears to work in that the GPResults.IsFailed property comes back false.&amp;nbsp; However, the GRID still resides on disk as a folder name and has its component files still present.&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Dan is right on, deleting a layer will only delete a layer not a dataset!&amp;nbsp; An issue you may be running into is that if you try to delete a raster data while a layer pointing to it still exists, the delete operation cannot complete. The interactive delete is probably working because the app has code to delete the layer and then the dataset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Oct 2017 00:28:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/proper-parameter-value-for-geoprocessing-tool/m-p/832111#M3374</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2017-10-06T00:28:27Z</dc:date>
    </item>
    <item>
      <title>Re: Proper parameter value for Geoprocessing Tool managment.Delete</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/proper-parameter-value-for-geoprocessing-tool/m-p/832112#M3375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for responding Curtis. I appreciate your time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I thought the dataset was the proper object from the beginning.&amp;nbsp; I have written ArcObjects applications that allow this behavior through the dataset, when that didn't work in Pro, I started experimenting with other parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As&amp;nbsp;I mentioned, to test the Delete tool free from any sr.lock files associated with having the GRID in the Pro session as a layer, I created the dataset from disk:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="dataset from disk" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/376024_CodeGenRasterDataset2.png" /&gt;&lt;/P&gt;&lt;P&gt;I passed the raster dataset as a parameter to the tool and encounter the results posted above.&amp;nbsp; So it seems, independent of any 'layer' intrusion, the tool does not navigate the raster dataset, based off the GPResults message .&amp;nbsp; As the tool does not call for any environment parameters, I am not clear what else the it requires.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again for input.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Oct 2017 14:45:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/proper-parameter-value-for-geoprocessing-tool/m-p/832112#M3375</guid>
      <dc:creator>ThomasCox</dc:creator>
      <dc:date>2017-10-06T14:45:55Z</dc:date>
    </item>
    <item>
      <title>Re: Proper parameter value for Geoprocessing Tool managment.Delete</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/proper-parameter-value-for-geoprocessing-tool/m-p/832113#M3376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unfortunately, you're&amp;nbsp;a bit outside my expertise as I have zero experience with Pro SDK and minimal with ArcObjects. In geoprocessing all tool parameters are converted with str() before the tool runs. Tool parameters in GP are always passed in string representation. This&amp;nbsp;allows easy code patterns in arcpy like:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;lyr &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;MakeFeatureLayer&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"test.shp"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"lyrTest"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;SelectByAttribute_management&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;lyr&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;""&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"FID &amp;lt; 20"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;In the above example the result object lyr is converted "lyrTest" -- with str():&amp;nbsp; (str(lyr) == lyr.GetOutput(0) == "lyrTest") for SelectByAttribute.&lt;/P&gt;&lt;P&gt;It looks like above you were passing a pointer to an object (&lt;EM style="background-color: #ffffff; border: 0px;"&gt;pBasRasDataSet) --&amp;nbsp;&lt;/EM&gt;maybe you should be passing a path extracted off this object instead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this doesn't help I'm hoping someone that knows the Pro SDK will chime in.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 10:03:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/proper-parameter-value-for-geoprocessing-tool/m-p/832113#M3376</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2021-12-12T10:03:46Z</dc:date>
    </item>
    <item>
      <title>Re: Proper parameter value for Geoprocessing Tool managment.Delete</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/proper-parameter-value-for-geoprocessing-tool/m-p/832114#M3377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;H4&gt;Thanks&lt;STRONG&gt; for your input Curtis.&amp;nbsp; I have tried numerous strategies to&amp;nbsp;clean up the intermediate raster files with limited results.&amp;nbsp; I changed the raster type to .tif and attempted to remove the intermediate files with an operating system delete.&amp;nbsp; This works for the initial files, but encounters locks on the later ones and throws a message the files are being used by ArcPro&lt;/STRONG&gt;.&lt;/H4&gt;&lt;P&gt;&lt;/P&gt;&lt;H4&gt;I long for the 'old' days when you could simply delete a dataset such as:&lt;/H4&gt;&lt;P&gt;&lt;/P&gt;&lt;H4&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IWorkspace pWorkspace = (IWorkspace)ws;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IEnumDataset pEnumDataset = pWorkspace.get_Datasets(esriDatasetType.esriDTRasterDataset);&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IDataset pDS;&lt;/EM&gt;&lt;/H4&gt;&lt;P&gt;&lt;/P&gt;&lt;H4&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; try&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pDS = pEnumDataset.Next();&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; while (pDS != null)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (ListOfGridNamesToRemove.Contains(pDS.Name))&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pDS.Delete();&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pDS = pEnumDataset.Next();&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; catch (Exception ex)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RemoveGRIDSListErr.Add(ex.Message);&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/EM&gt;&lt;/H4&gt;&lt;P&gt;&lt;/P&gt;&lt;H4&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.Runtime.InteropServices.Marshal.ReleaseComObject(pWorkspace);&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.Runtime.InteropServices.Marshal.ReleaseComObject(pEnumDataset);&lt;/EM&gt;&lt;/H4&gt;&lt;H4&gt;&lt;/H4&gt;&lt;P&gt;&lt;/P&gt;&lt;H4&gt;In the Pro SDK, I have not found any object based method that allows this. I understand the&amp;nbsp;Pro&lt;BR /&gt;paradigm is to call tools to perform these tasks.&amp;nbsp; Unfortunately, I have not been able to get the "management.delete" tool to behave from code.&amp;nbsp; Additionally, I am finding in some instances, the geoprocessing tools performance is quite poor compared to their ArcObjects equivalent object methods. Look for an upcoming forum post regarding the raster 'Flip' command.&amp;nbsp; This poor performance is seen running the tool natively as well through code.&lt;/H4&gt;&lt;H4&gt;&lt;/H4&gt;&lt;H4&gt;Perhaps, this delete issue might have to wait for the developer's summit.&amp;nbsp;&amp;nbsp;&amp;nbsp; I will update when I gain more insight as to how this process should work.&lt;/H4&gt;&lt;H4&gt;&lt;/H4&gt;&lt;H4&gt;&lt;/H4&gt;&lt;H4&gt;Thanks again to everyone for their input.&lt;/H4&gt;&lt;H4&gt;&lt;/H4&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Oct 2017 15:16:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/proper-parameter-value-for-geoprocessing-tool/m-p/832114#M3377</guid>
      <dc:creator>ThomasCox</dc:creator>
      <dc:date>2017-10-12T15:16:49Z</dc:date>
    </item>
    <item>
      <title>Re: Proper parameter value for Geoprocessing Tool managment.Delete</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/proper-parameter-value-for-geoprocessing-tool/m-p/832115#M3378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thomas, can I ask that you try your post in the &lt;A _jive_internal="true" href="https://community.esri.com/community/gis/imagery-and-remote-sensing"&gt;Imagery&lt;/A&gt;&amp;nbsp;forum? I realize that you are executing a tool with the API but the Esri staff experts in those tools will probably be more readily accessible on that forum than this one. That said, I will alert the raster team staff that&amp;nbsp;you have questions pertaining to their GP tools in the SDK forum.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Oct 2017 21:55:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/proper-parameter-value-for-geoprocessing-tool/m-p/832115#M3378</guid>
      <dc:creator>CharlesMacleod</dc:creator>
      <dc:date>2017-10-16T21:55:24Z</dc:date>
    </item>
    <item>
      <title>Re: Proper parameter value for Geoprocessing Tool managment.Delete</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/proper-parameter-value-for-geoprocessing-tool/m-p/832116#M3379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Charles, thanks for the suggestion.&amp;nbsp; I have posted this question to the imagery forum you suggested.&amp;nbsp; The imagery forum posting resides at:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.esri.com/message/722377-proper-parameter-value-of-managementdelete-tool"&gt;https://community.esri.com/message/722377-proper-parameter-value-of-managementdelete-tool&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I appreciate your time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Oct 2017 22:56:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/proper-parameter-value-for-geoprocessing-tool/m-p/832116#M3379</guid>
      <dc:creator>ThomasCox</dc:creator>
      <dc:date>2017-10-16T22:56:34Z</dc:date>
    </item>
    <item>
      <title>Re: Proper parameter value for Geoprocessing Tool managment.Delete</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/proper-parameter-value-for-geoprocessing-tool/m-p/832117#M3380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please excuse the meta below. &lt;A href="https://community.esri.com/migrated-users/23448"&gt;Charles Macleod&lt;/A&gt;&amp;nbsp; "@"-mentioning the Imagery forum places links to this thread over there -- there is no need to create a new thread, and in fact this is frowned upon as now we have two threads instead of one to navigate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/11984"&gt;Thomas Cox&lt;/A&gt;, thanks for adding the link between the threads though. But - note the "@" form of a link (instead of a URL) to another geonet thread gives a better chance of the link still working through any future community platform migrations: &lt;A href="https://community.esri.com/message/722377-proper-parameter-value-of-managementdelete-tool?sr=search&amp;amp;searchId=df42e773-eacc-4fef-8bff-b8e0e96d5ddd&amp;amp;searchIndex=1"&gt;https://community.esri.com/message/722377-proper-parameter-value-of-managementdelete-tool?sr=search&amp;amp;searchId=df42e773-eacc-4fef-8bff-b8e0e96d5ddd&amp;amp;searchIndex=1&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;End meta. My apologies, but this is good to know...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2017 22:49:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/proper-parameter-value-for-geoprocessing-tool/m-p/832117#M3380</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2017-10-19T22:49:31Z</dc:date>
    </item>
  </channel>
</rss>

