Quantcast
Channel: Forums - ArcObjects SDKs
Viewing all articles
Browse latest Browse all 1374

Error 000824 with Eliminate tool in ArcGIS Engine

$
0
0
Hi all. I'm developing a standalone application with ArcGIS Engine in .Net environment. I have license for engine + Spatial analyst + 3D Analyst. Everything works perfect – including clip, intersect, Select by attributes, Select By Location, …. – except for Eliminate tool. This is my code for eliminate:
Code:

Dim InLayerPath, InLayerName As String
Dim pFDS As IDataset = pFL
InLayerPath = pFDS.Workspace.PathName
InLayerName = pFDS.Name

Dim GP As ESRI.ArcGIS.Geoprocessor.Geoprocessor = New        ESRI.ArcGIS.Geoprocessor.Geoprocessor
Dim EliminateTool As New ESRI.ArcGIS.DataManagementTools.Eliminate
EliminateTool.in_features = InLayerPath & "\" & InLayerName & ".shp"    'like c:\a.shp
EliminateTool.out_feature_class = OutFullPath            'input by user like c:\b.shp
       
Dim pGPResult As ESRI.ArcGIS.Geoprocessing.IGeoProcessorResult
GP.OverwriteOutput = True
pGPResult = GP.Execute(EliminateTool, Nothing)

In the last line, I get HResult error of 2147467259. GP.GetMessages(2) gives me following description of this error:
"Failed to execute. Parameters are not valid. ERROR 000824: The tool is not licensed. Failed to execute (Eliminate). "
I'm nearly sure that that there is no problem with license, because in other areas of my code I can run other tools located in DataManagementTools toolbox, like select by location.
I've spent lots of hours to figure out the source of problem but without any solution. Any help or tip would be greatly appreciated
Thanks in advance

Viewing all articles
Browse latest Browse all 1374

Trending Articles