arcpy.FeatureToPoint_management expects a Feature Layer as in_features (http://pro.arcgis.com/en/pro-app/tool-reference/data-management/feature-to-point.htm).
My in_features is a polygon feature layer with many polygons but I only want to use the selected polygon in the FeatureToPoint_management.
Any thoughts as to how to best do this?
Thanks
Maybe create a in memory feature class, add the selected polygon there then use that as in_features? This thought just popped into my mind right now.
Most, not sure if all, geoprocessing tools honor selections on feature layers and table views. Have you tried selecting the polygon you want in the feature layer and running the tool? How are you selecting the polygon, GUI, geoprocessing tool, etc...?
No. I haven’t tried to just run it and see if it honours the selection. It’s selected by another script earlier in the model. I’ll give it a try. Thanks!