Select by location, shapefile?

Discussion created by jordwoods on Mar 23, 2012
Latest reply on Mar 23, 2012 by jordwoods
I am trying to export a selection from a shapefile of rooftops completely within a city boundary. This is all done outside of Arcmap, so there are no active layer.
The only code I was able to find is the SelectLayerLocation, but what I am selecting is obviously not a layer. It is telling me I have invalid inputs, because it is not a layer!
How can I make the selection of the roof shapefile, and then export!

Can anyone offer some advice? I have looked at some of the other posts about the selectlayerllocation, but none of them made much sense. I am a beginner to using Python, especially to automate processes.