AnsweredAssumed Answered

ERROR Only polygon shapefiles allowed

Question asked by 17066s78237 on Apr 7, 2018
Latest reply on Apr 9, 2018 by rvburton

I use a python script tool in ArcMap which has two input parameters. The tool only allows to use shapefiles as input. My problem is, that the data I use is organized in feature classes within a geodatabase. Is there a possibility to change the code so that the tool works either with shapefiles and also with (polygon) feature classes? I thought, maybe if the tool recognizes that the input data is a feature class it can automatically convert it like with FeatureClassToShapefile_conversion.

Thanks in advance.

python arcpy arcmap 10.6 tool parameters parameter invalid

Outcomes