AnsweredAssumed Answered

filter.list = ["Raster"] is Wrong?

Question asked by nikfal on May 9, 2017
Latest reply on May 10, 2017 by curtvprice

I am trying to build a Python Toolbox, like in the following code snippet. However I got error because of the last line (Filter) . I have to filter the files because without the filter the output window shows all kind of data including Feature class.


    # First parameter  
    param1 = arcpy.Parameter( 
    displayName="Output Raster Dataset", 
    datatype=["Raster Dataset"], 
    direction="Output ") 
    param1 .filter.list = ["Raster"]