I am selecting features based on attributes within an ArcGIS Add-In. The selections are pretty simple(e.g. "DESCRIPTION = left"). Is there a tool or method of doing this that doesn't require passing layers around? Is there a simple ArcObjects method I may have looked over?
After the selection I will need to pass the selected features into another geoprocessing step - so I need to get the output selection as a path (string).
Currently I am:
1) Creating a feature layer from a given file.
2) Selecting features from the layer.
3) Saving the layer using Copy Features to get the output as a new shapefile.
