Question on FeatureclassToFeatureclass tool..

Discussion created by jvickrey79 on Sep 27, 2010
Latest reply on Sep 27, 2010 by jvickrey79
In my attached script, I simply let the user choose which layer from table of contents they want to do a SelectbyAttributes and then do a FeatureclasstoFeatureclass so they can have a shapefile of the query results.  My problem is that one of the required parameters for FeatureclasstoFeatureclass requires a Name for the output shapefile.  So how can I get which layer the user chose as the Name of the output shapefile??  If I can't do this through my model and I export my model to python, how can I accomplish this through python instead?

Many thanks..