Select to view content in your preferred language

arcpy.FeatureToPoint_management

1028
2
11-12-2018 07:39 AM
ChrisHolmes
Frequent Contributor

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.

0 Kudos
2 Replies
JoshuaBixby
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...?

ChrisHolmes
Frequent Contributor

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