11-12-2018 07:39 AM
Occasional Contributor III

arcpy.FeatureToPoint_management expects a Feature Layer as in_features (

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?


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.

0 Kudos
2 Replies
MVP Esteemed Contributor

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...?

Occasional Contributor III

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!

0 Kudos