Select to view content in your preferred language

Modify Output Feature Name in Model Builder (ERASE tool)

839
1
08-12-2010 10:33 AM
SarahMcCloskey
New Contributor
I am using the ERASE tool in a batch process.  My Input Feature is a single polygon representing a specific area in the ocean (lets call it AREA1).  Then I have a series of 100+ polygons representing different ice chunks (lets call them ICE1, ICE2, ICE3... etc.)

My InputFeature = AREA1
My EraseFeatures = ICE1, ICE2, ICE3...etc

My problem is, I need the output feature classes to be named after the ICE layers (EraseFeatures) and not the AREA layer (InputFeatures). 

ex.
Currently the Output Feature = C:\Project\AREA1_Erase.shp
I want it to be called = C:\Project\ICE1_Erase.shp
or something like C:\Project\AREA1_ICE1_Erase.shp

I just need to have the ICE layer name as part of the output name in some shape or form.

Is this possible?
0 Kudos
1 Reply
SarahMcCloskey
New Contributor
Figured it out:

Just set my OUTPUT FEATURE CLASS TO : C:\Project\%ERASE FEATURE%.shp and worked like a charm.
0 Kudos