Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I often have a problem when it comes to renaming featureclasses or SHPs in ArcGIS. I also have a problem when for example I have to transform 20 Feature classes or a whole dataset into a new coordinate system and want to append "_ETRS89" to the end of all the transformed feature classes.

I know there are python scripts which do this, as well variable substitution methods in model builder. But isn´t there also the option of putting this in the Tool´s dialog in ArcMap?

share|improve this question
    
Could you review and revise the question, please? Are you asking whether, without using Python and without using ModelBuilder, it is possible to Rename or "transform" (which tool?) 20 feature classes with a string of "_ETRS89" concatenated onto the end of their name without having to type it 20 times? –  PolyGeo May 31 '13 at 7:36
    
Do I get you right?: You want an entry in the Menu that lets you rename (and/or transform) not only one single feature class, but a whole bunch of feature classes with a single action? –  Jürgen Zornig May 31 '13 at 7:38
1  
Basically I want to know how to append a string to the end of Featureclass names. In my workflow however, this is usually only necessary when I have to reproject several feature classes in a Featuredataset beacause I then have to append the coordinate system to the end of the filename. ArcGIS appends "_project" to the end of the data after a reproject. I want "_ETRS". I hope this is clear now. –  Robert Buckley May 31 '13 at 8:41
    
It makes it a little clearer but can you use the edit button to revise your question with this detail, please? –  PolyGeo May 31 '13 at 21:03
add comment

1 Answer 1

When you create a tool in model builder and want to run it from the tools menu (rather than open model builder all the time), you need to define parameters. These will then show up in a dialog box when you click on the tool n the tools menu (as opposed to edit it in model builder). See the documentation for how to do this. You can then use the tool from the tools menu like any other tool.

So, you can take your python script and add it to a tool using model builder. Give it some inputs which you should mark as parameters and perhaps likewise have a parameter for the string you want to append as a file name. You will also want to parameterize your folder destination.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.