AnsweredAssumed Answered

Filter in Python toolbox does not do the job

Question asked by TomGeo on Oct 3, 2014
Latest reply on Oct 6, 2014 by Hornbydd

Hi,

 

as the header says, I do have a problem in getting only the datasets I want. In the following my parameter definition is shown, where from I would expect to get only feature classes of type point to be shown.

 

p_envWorkS = arcpy.Parameter(
    displayName = 'Workspace',
    name = 'in_ws',
    datatype = 'DEWorkspace',
    parameterType = 'Required',
    direction = 'Input',
    category = '1. Input Settings')

p_envPoints = arcpy.Parameter(
    displayName = 'Input FeatureClass',
    name = 'in_fc',
    datatype = 'DEFeatureClass',
    parameterType = 'Required',
    direction = 'Input',
    category = '1. Input Settings')
p_envPoints.parameterDependencies = [p_envWorkS.name]
p_envPoints.filter.list = ['POINT']

However, the following screenshot shows all kind of content. Even feature datasets are listed... hence the name 'roads' shows twice.

param.png

Does some of you know where I am going wrong or what I am missing the get the correct feature type shown?

 

Best regards,

Thomas

Outcomes