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
Although there are some, there are very few Esri geoprocessing tools that only accept shape files and not feature classes. What geoprocessing tools is the Python script tool using?