Saturday, 17 August 2019

arcobjects - Lock overlay on Custom Geoprocessing Tools


How do you get rid of the "lock" icon overlay on a custom geoprocessing tool in ArcToolbox?


This seems to appear even with the ESRI Sample Projects.



Answer



Contrary to the ESRI-provided sample, do not set IGPFunctionName.MinimumProduct when implementing IGPFunctionFactory.GetFunctionNames and IGPFunctionFactory.GetFunctionName (or any other IGPFunctionName related methods).


EDIT: You can of course set the property to the appropriate level. The ESRI sample uses the (highest) esriProductCode.esriProductCodeProfessional level (ArcInfo) which, in majority of cases, is not what you want.



No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...