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