I'm trying to create a python script that will export selected features from a layer within ArcMap. The general workflow would be the following:
1) User opens ArcMap
2) User manually selects features from layer
3) User runs script that exports ONLY selected features from layer
This seems pretty straight-forward but I'm not used to dealing with interactive selections. I'm also wondering if it's necessary to add in some logic for variances in layer names since users may alter the layer name...? Can this be made as a parameter of the script?
I'm also wondering if it would be best to have users run this as a python tool from a toolbox or if a python add-in is possible so it's a button click...?