Create layer from ONLY selected features in ArcToolbox

3274
2
06-16-2015 09:13 AM
FresnoCouncil_of_Governments
New Contributor

I'm creating some models to assist other staff in a big geoprocessing project coming up, both to streamline their workflow and provide a level of data integrity protection.  One of the functions I want to emulate in Model Builder is to calculate a field on ONLY selected features.  The MakeFeatureLayer_management tool will work most of the time, but if the user hasn't selected any features on the layer before using the tool, it seems that the tool will then calculate the field for ALL records.  I want to make it so that if no features are selected, nothing happens.  Any suggestions would be appreciated.  Thanks.

0 Kudos
2 Replies
WesMiller
Regular Contributor III

You could use if-then-else logic and test for selected features

FresnoCouncil_of_Governments
New Contributor

Yeah, I was hoping to avoid that -- if there isn't a more elegant way, that's what I'll do.  Thanks.

0 Kudos