as the header says, I do have a problem in getting my toolbox to function the way I want it to. In the following my parameter definition is shown, where from I would expect to get only feature classes of type point to be shown.
def getParameterInfo(self): #Define parameter definitions # Input Features parameter in_workspace = arcpy.Parameter( displayName="Input Workspace", name="in_workspace", datatype="DEWorkspace", parameterType="Required", direction="Input") # FeatureClasses parameter in_fc = arcpy.Parameter( displayName="Input FC", name="classes", datatype="DEFeatureClass", parameterType="Required", direction="Input") in_fc.parameterDependencies = [in_workspace.name] in_fc.filter.list = ["POINT"] parameters = [in_workspace, in_fc] return parameters
However, the resulting dropdown list shows all kind of content, e.g. point, line, and polygon feature classes. Even feature datasets are listed...
I got the suggestion to use GPFeatureLayer instead of DEFeatureClass, but as far as I understand Esri's resource center it looks to me as if GPFeatureLayer is in my case actually a detour to the datasets requested. When I tried GPFeatureLayer then there was no difference at all to the use of DEFeatureClass.
By my understanding, GPFeatureClass would be the way to go, FeatureDatasets should not appear in the list, and the filter set for the list should only populate the list of FeatureClasses with datasets of type point.
Does anybody of you can help me with this issue?